2014-08-27 33 views
0

正如我試圖把一些角在我的.NET MVC的網站,我會遇到以下運行時錯誤Microsoft JScript中的角是不確定的

0x800a1391 - ERREUR D'執行Microsoft JScript中的:「角」 EST indéfini。

這意味着:Microsoft Jscript運行時錯誤:'angular'未定義。

這種情況出現在下面的代碼

var customersApp = angular.module('propositionApp', ['ngGrid']); 

(我用角1.2.23)

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular-resource.min.js"> 
</script> 
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular-route.min.js"></script> 

互聯網上的提醒添加在head標籤下面的代碼的一些研究,但此產生甚至更多的運行時錯誤,因爲url返回的代碼的一部分是空值。

當然,我已經添加角度到我的項目與金塊包。

這個問題「角」沒有定義在哪裏?

+0

您需要在資源,路線之前加入angularjs。 – PSL 2014-08-27 16:49:49

回答

5

它看起來像你不需要一般的角庫。添加

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> 

在你的文件的頭部之前你的JavaScript文件。

相關問題