Data binding

De Basef
Revisão de 15h12min de 27 de abril de 2018 por Admin (discussão | contribs)

Ir para: navegação, pesquisa
  • 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"