philippd / angular-deferred-bootstrap

Initialize your AngularJS app with constants loaded from the back-end.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow bootstrap of multiple modules

osela opened this issue · comments

In our project we bootstrap angular with our main module and several plugin modules using:

angular.bootstrap(document, ['main', 'plugin1', 'plugin2']);

Currently, the library allows bootstrap of only one module.

Ideally, the 'module' option could also accept an array of modules to pass to angular.bootstrap. In that case, the constants will be set on the first one.