July 2017
Intermediate to advanced
454 pages
10h 1m
English
In preceding section, we learnt about One-way Data Binding from data source to view template.
In this section we will learn about One-way Data Binding from view template to data source.
One-way Data Binding from view template to data source is implemented mainly for events.
The general syntax for creating a binding is given below:
(target)="statement"
The binding from view to data source is mainly used for invoking methods or capturing event interactions.
Example of a one way binding from view template to data source is given below
<button (click)="updateTax()"></button>
We are attaching the click event and when the button is clicked, updateTax method will be called.
We learned about ...
Read now
Unlock full access