Mudanças entre as edições de "Data binding"

De Basef
Ir para: navegação, pesquisa
 
Linha 40: Linha 40:
 
</source>
 
</source>
  
[[Category: AngularJS2]]
+
[[Category: Angular]]

Edição atual tal como às 09h38min de 27 de janeiro de 2020

  • Variable binding:
{{ value }}


  • Property binding:
[property]="value"

or

bind-property="value"


  • Event binding:
(event)="handler"

or

on-event="handler"


  • Bi-directional property binding (any change in DOM is reflected in the component and vice versa):
[(ngModel)]="property"

or

bindon-ngModel="property"