This example describes the use of ANGULARJS data binding. Share to everyone for your reference, specific as follows:
Data binding is a very important feature in Angularjs, so let's take a look at the following example:
This example is very simple, we first run in the browser to see the effect.
When we enter information in the text box, the information we enter is dynamically echoing back to the page.
In this example we use another built-in instruction Ng-modelfor Angularjs, which means that we add a property named "name" to the Model data object ($scope) and bind it to the text box object. This means that whatever we enter in the text box is synchronized to the "name" attribute, Angularjs listens to the form object-related events, so the echo content changes as the text box is entered.
It should be noted that Ng-model can only be used in the form element label.
Angularjs Source can click here to download the site .
I hope this article will help you to Angularjs program design.