ui-router
ui-router copied to clipboard
minification
I put these code in a separate js file, after minification, I get $injector error.
myapp.config(["$stateProvider",function ($stateProvider) { $stateProvider.state('register', { url: "/register", templateUrl: 'Account/Register', controller: function ($scope, $http ) { registerCtrl.call(this, $scope, $http); } })
}])
function registerCtrl($scope, $http){ .... }
and I tried this too, no luck: controller:["$scope", "$http", function ($scope, $http ) { registerCtrl.call(this, $scope, $http); }]
This issue doesn't seem to be related to this project, but you should try something like https://github.com/olov/ng-annotate prior to minification.