AngularJS: Two way Databinding Tutorial with example
In this article I will explain a simple tutorial with an example, what is Two way Databinding in AngularJS. This article will explain an example of Two way Databinding in AngularJS using ng-bind directive and Templates . Two way Databinding in AngularJS In AngularJS Two way Databinding , the Model and View are synchronized. In other words when the Model data changes, the change is reflected in the View while when the View changes, the Model is updated. AngularJS ng-bind and Template ng-bind This directive binds the model value to the HTML element. Template Templates are wrapped within curly braces {{ }}. It is used to bind expressions to HTML. AngularJS: Two way Databinding Tutorial with example Following is a simple example to display data using ng-bind and templates in AngularJS. In this example, I have set the ng-model directive for the TextBox...