Mudanças entre as edições de "Data binding"
De Basef
Linha 17: | Linha 17: | ||
− | * Bi-directional property binding | + | * Bi-directional property binding (any change in DOM is reflected in the component and vice versa) |
<source lang="javascript"> | <source lang="javascript"> | ||
[(ngModel)]="property" | [(ngModel)]="property" |
Edição das 15h11min de 27 de abril de 2018
- Variable binding
{{ value }}
- Property binding
[property]="value"
- Event binding
[event]="handler"
- Bi-directional property binding (any change in DOM is reflected in the component and vice versa)
[(ngModel)]="property"