The meaning of two-way binding
Angularjs is the front-end frame, the advantage of the use of course is simple and convenient! Especially for those who do not like to use Jquey and native JS of small partners, completely detached from the pain of stitching HTML fragments. Allow a little more to say nonsense ah, any framework is to simplify the development of the existence.
Bidirectional binding Definitions
A Word page (HTML) and JS file share a data model, so that the data model is automatically synchronized with the view component.
Chestnut: Http://www.runoob.com/try/try.php?filename=try_ng_intro
1 <DivNg-app="">2 <P>Name:<inputtype= "text"Ng-model= "Name"></P>3 <H1>Hello {{Name}}</H1>4 </Div>
In other words, the data source in the model changes, the page also automatically adjust the synchronization. The data on the page is modified directly and automatically affects the data source inside the model. If there is any unreasonable, please give me a lot of advice.
ANGULARJS bidirectional binding