What is Data Binding In Angular
What is Data Binding In Angular
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>