myApp.controller('myCtrl',['$scope','$http','ngDialog','$stateParams','Locals',function($scope,$http,ngDialog,$stateParams,Locals) {......}]);
上面的代码中,[]里的参数顺序要和function的参数顺序一致。
myApp.controller('myCtrl',['$scope','$http','ngDialog','$stateParams','Locals',function($scope,$http,ngDialog,$stateParams,Locals) {......}]);
上面的代码中,[]里的参数顺序要和function的参数顺序一致。