AngularJS Quick Start

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.