We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在使用uglify的时候,他会把function checkInCtrl ($scope, $rootScope, $location, $http){ }的申明变为类似于function checkInCtrl(a,b,c,d){ },这样注入会有问题。所以需要采用数组注入,才能让他正确的对应
潜在问题:grunt以后自动化打包压缩script会因为打乱文件压缩顺序出问题, 比如依赖jquery的js文件在jquery文件加入合并之前就已经自动了
The text was updated successfully, but these errors were encountered:
👍 嗯, 对~~ 详细点的问题描述在下方:
controller(‘IndexController’, function ($scope){ $scope.name = ‘wolf'})
controller(‘IndexController’,function (e){ e.name = ‘wolf’}) // as you can see the parameter name $scope to be instead with e
controller(‘IndexController’, [‘$scope’, function (){ $scope.name = ‘wolf’;}]);
Sorry, something went wrong.
No branches or pull requests
在使用uglify的时候,他会把function checkInCtrl ($scope, $rootScope, $location, $http){
}的申明变为类似于function checkInCtrl(a,b,c,d){
},这样注入会有问题。所以需要采用数组注入,才能让他正确的对应
潜在问题:grunt以后自动化打包压缩script会因为打乱文件压缩顺序出问题, 比如依赖jquery的js文件在jquery文件加入合并之前就已经自动了
The text was updated successfully, but these errors were encountered: