My Rails app doesn\'t work after turned on assets magnification when assets compiled. I converted the Angular controllers to use the bracket notation, and get following erro
I had a same problem and I found out that the problem was not in .controller call, it was in .config where it was not minification safe.
var app = angular.module('myModule', ['restangular']);
app.config(function(RestangularProvider) {
RestangularProvider.setDefaultHeaders({'Content-Type': 'application/json'});
RestangularProvider.setBaseUrl('http://myapi.com/api/v1');
});
var app = angular.module('myModule', ['restangular']);
app.config(['RestangularProvider', function(RestangularProvider) {
RestangularProvider.setDefaultHeaders({'Content-Type': 'application/json'});
RestangularProvider.setBaseUrl('http://myapi.com/api/v1');
}]);