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)