1.

Explain the usage of {{}} in angular?

Answer»

In Angular, a template EXPRESSION produces a value and APPEARS within the double curly braces, {{ }}. Angular then EXECUTES the expression and assigns it to a property of the binding target; which could be an HTML element, a COMPONENT, or a directive.

Like here, currentCustomer is a component property.

<H3>Current customer: {{ currentCustomer }}</h3>?



Discussion

No Comment Found