ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

minification

Open DealerCorp opened this issue 12 years ago • 1 comments

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); }]

DealerCorp avatar Oct 16 '14 00:10 DealerCorp

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.

TheSharpieOne avatar Oct 16 '14 15:10 TheSharpieOne