我有一個應用程序:
app.js:
angular.module('AngApp', [
'angularGrid'
]);
我自己restangular service.js:
var app = angular.module('AngApp');
app.factory('restService', ['Restangular', function (Restangular) {
// make use of Restangular
}
]);
和controller.js:
var app = angular.module('AngApp');
app.controller('ctrlAG', ['$scope', '$http', '$log', '$mdDialog',
'Restangular',function ($scope,$http, $log, $mdDialog, Restangular) {
// make use of other modules and Restservice
}
]);
html是:
<script type="text/javascript" src="ng/app.js"></script>
<script type="text/javascript" src="ng/restangular.js"></script>
<script type="text/javascript" src="ng/restService.js"></script>
<script type="text/javascript" src="ng/ctrlAG.js"></script>
<script type="text/javascript" src="ng/ctrlMetadata.js"></script>
角1.3.6,restangular(最新)。
請問這個錯誤是什麼原因?我已經檢查了here 的常見錯誤,但它們不存在。
你嘗試將應用文件restangular後? – dubadub