Interviews4 answers
What is 2 way data binding in Angular Js?
4 Answers
In two way data binding data flows from "Scope/Controller" to "View/Markup" and vice varsa.
in Scope data gets propagated to view and data modification propagated immediately and reflected in view.
In view data gets propagated to scope and data modification propagated immediately and reflected in scope.
usually performed through "ng-nodel"
SanPosted Jan 4, 2018, 8:36 PM EST
Two-way data binding combines the property and event binding into a single notation using the ngModel directive.We can achieve it by using following way
Ex :
What this is doing behind the scenes is equivalent to -
Ex :
Suresh KumarPosted Nov 7, 2017, 8:11 PM EST
ngmodel and interpolation
Niraj SharmaPosted Nov 3, 2017, 2:45 AM EDT
Update Model when View get change and vice versa.
Synchronization between the model and the view.
Manoj KallaPosted Oct 4, 2017, 6:24 AM EDT


