Data Binding
In This topic we are going to look at Data Bindings and how angular keeps both view and component in sync. we will see what techniques we can use to keep component and view in sync. Data Binding in Angular ➤➤ In simple word data binding is a technique which keeps component and view in sync in respect to data. Whenever user updates data in view, angular updates the component and when component get any new data angular sync it with view. The angular data binding can be classified in two group ➣ 1. One-way Binding 2. Two-way Binding One-way data binding ⮞ In one way data binding data flows in one direction, either from component to view or from view to component. To bind data from component to view or html we can use property binding or Interpolation. Interpolation ⮞⮞ If you want to display read only data in a view template then we can use angular interpolation. The interpolation allow us to place the component property name in the view template, enclosed in curly brace...