How to prevent element show before AngularJS initialized( ng-show )
问题 In AngularJS, I wonder how to prevent the elements shown on page before ng-show take effect, I found some posts talk about ng-cloak, but it seems not work in my case, probably the ng-cloak is for prevent double curly bracket rather than Element style. Another way someone talk about is define some style for before AngularJS initialized, but that is kinda hard to manage. Is there some official way to handle this? 回答1: Unless you want to show a loader, ng-cloak should be your solution. Official