In June, Google released the Angularjs 1.0 Stable Edition,
and claim: ANGULARJS allows you to extend the syntax of HTML to clearly and succinctly represent the components in your application, and to allow standard HTML to be your template language, Angularjs can automatically from owning JavaScript via bidirectional data binding Synchronizes data in the UI (view) of the (model).
Start Contact Angularjs is in April to the new project team, when Angularjs is still in the 0.8 unstable version, the project has been used, and this framework has been applied to the entire UI side of the project, the server is also an unstable web API, really admire the courage of the team, the enthusiasm for the new technology , fortunately, we all have a good ride, this is the first time to try a project full of unstable technology.
Back to the point, first look at an official example:
<!doctype html>
Demo:
Your Name:
Hello {{Yourname | | ' World '}}!
Note: Entering any character in the input box will immediately bind to the update to the page.
Here the Ng-model instruction (Directive) binding is the Model scope property yourname.
and use an expression to bind yourname to the text information.
This only requires any DOM time listening because the ANGULARJS is built in.