I have an object that must be loaded within (or before) AngularJS's start up (it is a user's profile of permissions that hides/shows parts of the user interface, checking is also d
Solution 1:
You could manually start Angular.js with angular.bootstrap. So that you can load your data first, then when you feel ready. Call angular.bootstrap() to start angular module.
What you have to prepare:
- Remove
ng-app="XXX" from your document. - Call
angular.bootstrap() after everything is ready.
Doc for angular.bootstrap()
Post a Comment for "Angularjs Load Data In App Startup"