2
這裏只是用這個
<div ng-repeat="item in users">Hello</div>
雖然我在/ MY /系統/用戶越來越要求在我的服務器代碼,但瀏覽器拋出的錯誤我的js代碼
var MYModule = angular.module('myApp', ['ngRoute', 'myAppServices'])
.directive('loading', ['$http', loadingDirective])
.config(myRouter);
angular.module('myAppServices', ['ngResource'])
.factory('Users', function($resource) {
return $resource('/MY/system/users');
});
function UsersCtrl($scope, Users) {
$scope.users = Users.query();
}
在我的HTML代碼
Error: [$resource:badcfg] http://errors.angularjs.org/1.2.16/$resource/badcfg?p0=array&p1=object
at Error (native)