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

De Basef
Ir para: navegação, pesquisa
(Criou página com '* Bi-directional variable binding <source lang="javascript"> {{ value }} </source> * Property binding <source lang="javascript"> [property]="value" </source> * Event binding...')
 
Linha 3: Linha 3:
 
{{ value }}
 
{{ value }}
 
</source>
 
</source>
 +
  
 
* Property binding
 
* Property binding
Linha 8: Linha 9:
 
[property]="value"
 
[property]="value"
 
</source>
 
</source>
 +
  
 
* Event binding
 
* Event binding
Linha 13: Linha 15:
 
[event]="handler"
 
[event]="handler"
 
</source>
 
</source>
 +
  
 
* Bi-directional property binding
 
* Bi-directional property binding

Edição das 16h10min de 27 de abril de 2018

  • Bi-directional variable binding
{{ value }}


  • Property binding
[property]="value"


  • Event binding
[event]="handler"


  • Bi-directional property binding
[(ngModel)]="property"