Brief introduction
Angular JS is a client-side MVC framework written in JavaScript, which brings significant changes to the industry, including innovative implementations of templating and bidirectional binding of data, which makes it powerful and easy to use. It can be used to help developers write single-page applications, especially for rich, Ajax-style applications with a large number of crud operations. Most developers believe that ANGULARJS significantly reduces the amount of code required for a project compared to other frameworks.
June 2012, Angular JS officially released version 1.0, in a variety of client-side MVC framework, belong to the rising star. The Angularjs home page (http://www.angularjs.org) is all-encompassing: A conceptual overview, a textbook, a developer's guide, an API reference, and a lot of code snippets in Angularjs's documentation for reference.
Hello World--angualrjs Example
http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js "></script>
Open the page containing this code on the browser and the Hello,world will be displayed.
1, the code first contains the ANGULARJS library, the library is quite small, minimized and compressed only 30KB, and it does not depend on other libraries.
2, through the Angularjs custom Ng-app to guide the Angularjs library.
3. Before template rendering, you can use Ng-init to initialize the model name and pass its value through the {{name}} expression.
With this very simple example, the Angular JS template system shows some important features.
- Add dynamic behavior to a static HTML document using custom HTML tags and attributes.
- Use double curly braces as delimiters for expressions that output model values.
In Angularjs, all special HTML tags and attributes that can be understood and interpreted by the framework are collectively referred to as directives (directives).
Master Angular JS The first day of--angular Zen