AngularJS Quick Start
Example code:
* Create an empty page
* Expand to be the simplest Angularjs page
* Modify Page Title
* Join Ng's Library
* Define the name of the project app,
* Must be in accordance with the MVC model requirements, the establishment of a basic framework, respectively, the project needs to define the model, View, Control:
Data module: dataservice.js
Controller module: democontroller.js
Transforming the DOM template to Ng style: index.html
* How to display the data on the page
Display the name, price and quantity of the product on the page: Haier TV, 2000, 2 units,
(data from variable item1 = {name: "Haier TV", price:2000, Quantity:2}
* * First define the data in DataService,
* * provided to DOM via Controller,
* * Use it in the DOM
Using the automatic data binding of NG
(No jquery, no document.getElementById, etc.)
AngularJS Quick Start