Binding with Interpolation

Binding coordinates communication between the component's class and its template and often involes in passing data. There are several types of binding but in this module, I'll show the 'interpolation' method.

Interpolation
It is the one way binding from class property to the template. Beside basic interpolation, it is also used for concatenation, calculation, using method etc as shown in example below.



Note: The value in between curly braces are called 'Template Expression'



Now with this method, In our application, we can modify our 'product-list.component.html' to show dynamic page title.

Share this

Related Posts