0

私のアプリで角をつけて認証をしようとしています。 私はapp.serviceを作成し、 "Restangular"を注入しました。

app.service('AuthService', function($cookies, $http, Restangular) { 
/**/ 
    }); 
:と私は、これはのAuthServiceある

var app = angular.module('cadastral', ["ngRoute","ngResource",'ngCookies',"Restangular"]); 
app.controller('authCtrl', function($scope,$http,$routeParams,AuthService,$cookies){ 
    /**/ 
}); 
私は私の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" 

を含ま

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. 

これは私のアプリのコードであるAntのこのエラーを持っています

誰かが私を助けることができますか? 何が問題なのですか?

+1

あなたはrestangularモジュールを取り外し、角度はもうそれを見つけることができませんなぜあなたは混乱していますか? –

+0

フルエラートレースも役に立ちます – arieljuod

+0

完全エラートレースを追加しました – Anwin

答えて

0

あなたのプロジェクトのモジュールにサードパーティのモジュールを挿入するときに、パラメータとしてモジュール名を送信する必要があります...

あなたのケースでは、あなたがにrestangular変更それのためのモジュール名ではありませんRestangularを注入されていますrestangularあなたは問題ないはず...

Restangularは、そのサービスの名前はモジュールではありません...

関連する問題