Angularjs Learning (1)

Source: Internet
Author: User

Here are the notes from the learning process, some of which are online excerpts

<!DOCTYPE HTML><HtmlLang= "ZH-CN"><Head><MetaCharSet= "UTF-8"><Title>bootstrap-auto</Title><StyleType= "Text/css">. Ng-cloak{Display:None;}</Style></Head><Body><div ng-app class= " Ng-cloak ">{{2+3*2}}</ div> <script src= ". /angular.js " Type=" Text/javascript "></script> </body></< Span style= "color: #800000;" >html>           

Inside the "Ng-cloak", this is used before the Angular.js compilation is completed (right!) That's right! Is before the ANGULARJS load is completed before the completion of the compilation . Therefore, if you want to avoid this situation well, the best way is to optimize the application loading process, or the combination of CSS to the non-compiled template processing. And because of that evil IE6,7 does not support the property selector, so it is best to use the class= "Ng-cloak" approach. When the compilation is complete, the class or attribute is deleted. ) Hide the template and avoid showing the original template on the page.

Angularjs Learning (1)

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.