What is Data Binding In Angular

What is Data Binding In Angular

Imgur
Data Binding is the automatic synchronization of data between the model and components.

There are three types of binding in Angular.

  • Interpolation
<h1>{{someValue}}</h1>
  • One-way binding
<input  type='text'  [value]="value">
  • Two-way binding
<input type='text' [(ngModel)]="value">
  • Event binding
<button  (click)="doSomeAction()">Save</button>
Reactions

Post a Comment

0 Comments

Close Menu