angularjs - John Papa's Angular Style Guide Y165 Recommendation... what to inject in app.core module? -
in y165, john papa recommends injecting cross app modules app.core.
angular.module('app.core', [angular modules, 'nganimate', 'ngsanitize', cross-app modules, 3rd party modules]);
however, in other examples, manually injects needs in own module... i.e.
dataservice.$inject = ['$http'];
$http common one, i'm thinking injecting app.core. bad idea?
i'm little confused, inject app.core , how determine whether should injected manually or if should injected app.core? (i.e. there unspoken rule put app.core if 2+ modules share it? 3+ modules?)
Comments
Post a Comment