Im pretty new and trying to build a app Its working fine
Now I am trying to minify the files:
Error: Unknown provider: aProvider <- a
uglify: {
my_target: {
files: {
'app/output/output.js': [
'app/js/angular-ui-router.js',
'app/js/angular-animate.js',
'app/js/packery.pkgd.js',
'app/js/app.js',
'app/js/services.js',
'app/js/controllers.js',
'app/js/directives.js'
]
}
}
}
1) How to solve this problem?
2) Some of blog examples suggesting to use grunt-contrib-concat before uglify use - why?
Second question is confusing me
Edit:
After read about ng-annotate They Must be written using the array syntax.
My code strcture like this
var app = angular.module('bigApp', []);
app.controller('mainController', ['$scope', function($scope) {
$scope.message = 'HOORAY!';
}]);
But didnt solve error 'Unknown provider: aProvider <- a'