May 2018
Intermediate to advanced
512 pages
11h 3m
English
Binding, or data binding, refers to an automatic, one or two-way connection between a variable in code and a value displayed or input in an HTML template or another component:
| Type | Syntax | Data direction |
| Interpolation Property Attribute Class Style |
{{expression}} [target]="expression" bind-target="expression" |
One-way from data source to view target |
| Event | (target)="statement" on-target="statement" | One-way from view target to data source |
| Two-way | [(target)]="expression" bindon-target="expression" | Two-way |
Source: https://angular.io/guide/template-syntax#binding-syntax-an-overview
Read now
Unlock full access