(iii) Use of Ng-app puzzles and automatic loading of the ANGULARJS framework

Source: Internet
Author: User

Ng-app is an instruction for angular, which represents a angular application (also called a module). Use Ng-app or ng-app= "" To mark a DOM node so that the framework loads automatically. In other words,Ng-app can be a property value. If you want to implement automatic loading, you cannot have Ng-app with attribute values.


1, does not contain the Ng-app, cannot automatically load, this relatively good understanding.

2, contains 2 Ng-app, then will only automatically load the first, this is understood.

3, Ng-app with attributes, not automatically loaded

4, without attributes in front, with attributes in the back. Ng-app tagged modules can be loaded automatically

5, with attributes in front, without attributes in the back. Ng-app Tagged modules cannot be loaded automatically


The 4th and 52 situations are strange, there should be no difference in this order, and there is no need for this distinction, and guessing should be a bug in the framework. If anyone understands, please advise.


(iii) Use of Ng-app puzzles and automatic loading of the ANGULARJS framework

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.