2014-12-04 71 views
0

我試圖運行此AngularJS教程的例子和控制檯說:未捕獲的錯誤:[$注射器:modulerr]在使用restangular角JS注射器modulr錯誤

問題出在哪裏?

<html > 
<head> 
<script src="../bower_components/angular/angular.min.js" type="text/javascript"></script> 
<script src="../bower_components/underscore/underscore.js" type="text/javascrixpt"></script> 
<script src="../bower_components/restangular/dist/restangular.js" type="text/javascrixpt"></script> 
<script src="../bower_components/angular-route/angular-route.js" type="text/javascript"></script> 
<script type="text/javascript" src="ang.js"></script> 
<script src="../bower_components/jquery/dist/jquery.min.js"></script> 


<script> 
var app=angular.module('angular',['ngRoute','restangular']); 
</script> 

回答

2

您需要檢查路徑restangular.js。在angular.js之前還包括jquery.js

+0

restangular.js的路徑是正確的..! – Rkn 2014-12-04 08:00:48

+0

你也有拼寫錯誤腳本的文本類型屬性/文字/ javascrixpt' – Mikalai 2014-12-04 08:09:33

+0

thanx爲答案..乾杯! – Rkn 2014-12-04 08:17:16

相關問題