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

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -