$resources
myBookServices.factory('Book', ['$resource',
function ($resource) {
return $resource('../json/books.json', {}, {
query: {method: 'GET', params: {id: 'books'}, isArray: true}
});
有没有大神能帮忙解答一下query: {method: 'GET', params: {id: 'books'}, isArray: true}这句话中的params: {id: 'books'}的含义,id是json文件中book的id,books是ng-repeat="book in books",不知道该怎么用。