3. Data Binding in Angular
Data Binding in Angular
1. What is Data binding ?1. Binding the model data between view and controller is called as Data Binding
2. In Angular Data Binding can be achieved in two ways:
a. One Way Data Binding.
b. Two Way Data Binding.
One Way Data Binding
1. Binding the data from controller to view or view to controller is called one way data binding. 2. One Way data binding is again classified into two ways a. Controller to View. b. View To controller.Controller to view Data Binding
1. Binding the data from controller to view is called controller to view data binding. 2. Controller to view binding is again classified into 5 types a. Interpolation. b. Property Binding. c. Attribute binding. d. Style Binding. e. Class Binding.View to Controller Data Binding
1. Binding the data from view to controller is called View to controller Data binding. 2. Controller to view binding is again classified into 5 types a. Event Binding.Two way Data Binding
1. Binding the model data between view and controller and controller to view in parallel is called as Two Way Data Binding. 2. This two way data binding in angular can be achieved using ngModel.
Comments
Post a Comment