Angularjs Load Data In App Startup
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
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:
ng-app="XXX"
from your document.angular.bootstrap()
after everything is ready.
Post a Comment for "Angularjs Load Data In App Startup"