我尝试在我的应用程序中使用 Angular 进行授权。我创建了 app.service 并注入了“Restangular”。我有这个错误
Error: $injector:modulerr Module Error Failed to instantiate module cadastral due to:
Error: $injector:modulerr Module Error Failed to instantiate module Restangular due to:
Error: $injector:nomod Module Unavailable Module 'Restangular' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
我在我的 html 页面中包含了所有文件
script src="/app/app/core/js/angular.js" type="text/javascript"
scrip src="/app/app/core/js/angular-resource.js" type="text/javascript"
script src="/app/app/core/js/angular-route.js" type="text/javascript"
script src="/app/app/core/js/restangular.js" type="text/javascript"
这是我的应用程序代码
var app = angular.module('cadastral', ["ngRoute","ngResource",'ngCookies',"Restangular"]);
app.controller('authCtrl', function($scope,$http,$routeParams,AuthService,$cookies){
/**/
});
蚂蚁这是 AuthService:
app.service('AuthService', function($cookies, $http, Restangular) {
/**/
});
有人可以帮助我吗?什么问题?