Angular add modules after angular.bootstrap

前端 未结 3 1575
孤独总比滥情好
孤独总比滥情好 2021-02-04 02:41

I\'m using meteor + angular. My intention is to add more dependencies after the app bootstrap (This is because the package is the one handling the bootstrapping at the start and

3条回答
  •  借酒劲吻你
    2021-02-04 03:14

    Create your module:

    angular.module('app.controllers', []);
    

    Add it as a dependency:

    angular.module('app').requires.push('app.controllers');
    

提交回复
热议问题