我确定$ scope在$ http之前,但我仍然收到此错误!
angular.module('management')
.service('Requests', function () { /* ... */ })
.controller('RequestsOffWork', ['$scope', '$stateParams', '$location',
'Authentication', '$http', 'Requests',
function ($scope, $stateParams, $location, $http, Authentication, Requests) {
....
}
Run Code Online (Sandbox Code Playgroud)
您的参数不按顺序排列.
'$ scope','$ stateParams','$ location','Authentication','$ http','Requests'
$ scope,$ stateParams,$ location,$ http,身份验证,请求
切换$http并Authentication在两个位置之一.
| 归档时间: |
|
| 查看次数: |
560 次 |
| 最近记录: |