烦人的AngularJS注解 - grunt-ng-annotate的使用

📝

内容提要

angular加入了依赖注入 编写代码的时候,大致的写法如下 app.controller('tempController', function($scope, $http, $state, $timeout) { ... }) 可是这样的代码,压缩后会造成一个问题. 函数的参数:$scope, $http, $state, $timeout会变成:...

🏷️

标签

➡️

继续阅读