Closed BrodaNoel closed 8 years ago
In this code:
angular.module('xxxx') .provider('$foo', function foooo() { var loadTemplateFunction = function($route, $test) { return $test.load({ customerApiKey: $route.customerApiKey, hash: $route.hash, lang: $route.lang, }); }; this.bar = { template: '<div></div>', controller: 'bar', resolve: { templatesLoaded: loadTemplateFunction, }, };
I should add this code:
angular.module('xxxx') .provider('$foo', function foooo() { var loadTemplateFunction = ['$route', '$test', function($route, $test) { // <<< here! return $test.load({ customerApiKey: $route.customerApiKey, hash: $route.hash, lang: $route.lang, }); }]; this.bar = { template: '<div></div>', controller: 'bar', resolve: { templatesLoaded: loadTemplateFunction, }, };
Initial issue: https://github.com/mgol/grunt-ng-annotate/issues/44
Not planning to support that, use "ngInject" as described in the README.
In this code:
I should add this code:
Initial issue: https://github.com/mgol/grunt-ng-annotate/issues/44