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>

Please do not post any spam link in the comment box😊

Post a Comment (0)
Previous Post Next Post