Angular controller
This question already has an answer here:
When you are trying to minify the code, at that time
angular.module('myApp', [])
.controller('SomeController', ['$scope', function($scope) {
$scope.qty = 1;
}]);
Would be useful to inject the dependencies properly.
链接地址: http://www.djcxy.com/p/77804.html上一篇: AngularJS模块:这与$范围
下一篇: 角控制器