Sunday, 15 April 2012

jhipster - Injection code is there in spite of ngmin -



jhipster - Injection code is there in spite of ngmin -

why jhipster have these duplicate dependency lists in source files though uses ngmin automatically add together injected dependencies part of build tasks it's safe minification?

for example, there code in services.js,

jhipsterapp.factory('register', ['$resource', function ($resource) { homecoming $resource('app/rest/register', {}, { }); }]);

but since uses ngmin, expect this, without array , "$resource"

jhipsterapp.factory('register', function ($resource) { homecoming $resource('app/rest/register', {}, { }); });

is code before ngmin introduced , hasn't been simplified yet? maybe don't understand properly.

jhipster

No comments:

Post a Comment