Closed emjunior258 closed 8 years ago
Consider that angular code will be minified. Dependency injection should be mate using $inject annotation. .
var MyController = function($scope, greeter) {
// ...
}
MyController.$inject = ['$scope', 'greeter'];
someModule.controller('MyController', MyController);
https://github.com/yui/yuicompressor/