angular.js - Can you tell whether the angularjs module is started?
怪我咯
怪我咯 2017-05-15 17:05:23
0
3
541

The module I use to start Angular in my application is asynchronous, so multiple files need to determine whether the module has been started. If it is not started, start it. If it is started, use it directly.
I would like to ask if AngularJS provides a detection mechanism

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
迷茫

The question I asked makes no sense

世界只因有你
angular.module('xxx',[]).run(function(){
    console.log('初始化完毕');
});
大家讲道理

This can be found in the source code

if(!window.angular.bootstrap){
    angular.bootstrap(app, ['MyModule']);
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template