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
大家讲道理2017-05-15 17:07:23
This can be found in the source code
if(!window.angular.bootstrap){
angular.bootstrap(app, ['MyModule']);
}