AngularJS is a structural framework designed for dynamic Web applications that provides a new way to develop applications that allows you to extend the syntax of HTML to compensate for the lack of static text when building dynamic Web applications, and to use HTML to declare dynamic content in a Web application.
Angularjs has five main core features, which are described below:
1. Two-way data binding--the implementation of the model and view is fully bound together, the model changes, the view also changes, and vice versa.
2. Templates-in Angularjs, the template is equivalent to HTML files parsed into the DOM by the browser, ANGULARJS traversal of the DOM, that is, auguarjs the template as Dom to operate, to generate some instructions to complete the data binding view.
3.mvvm--absorbs the traditional MVC design pattern needles but does not perform the traditional MVC, much closer to MVVM (Moodel-view-viewmodel).
4. Dependency Injection--angularjs has built-in dependency injection subsystems that can help developers develop, understand, and test applications more easily.
5. Directives--can be used to create custom tags, or to decorate elements or manipulate DOM properties.
Download mode:
1)--Browser input HTTP://DOCS.ANGULARJS.CN/API
2)--command window under NPM install Angularjs
Create an App
The ANGULARJS is published as a JavaScript file and can be loaded into the Angularjs script via the script tag as follows:
- <script src="Http://www.hubwiz.com/scripts/angular.min.js"></script>
Copy the following code to the right column to get ready to work.
<div Ng-app= "" ng-init="Name= ' World '">
Hello {{Name}}
</div>
Click Run results to see if it is "Hello world", if correct, to indicate that the Angularjs script was successfully introduced.
Angularjs Introduction-Initial stage