Turn on Lightning Part 8 – Variable Binding

Turn on Lightning Part 8 – Variable Binding

In this blog, we will see 2 different ways of binding variables in lightning components.

If we remembered, in the earlier blogs we passed the attributes between the components using the {!} notation. But now in Spring 17, Salesforce introduced a new {#} notation.

What is this new {#} notation?? but before jumping on the new notation we will try to understand what is existing {!} notation.

What is {!} notation?

Its a bi-directional data-bind expression which means if we passed the attribute value from outer to inner component, and any modification performed at inner component level, will automatically changes the value of outer component.

What is {#} notation?

Continue reading “Turn on Lightning Part 8 – Variable Binding”