asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
答案 0 :(得分:0)
Entry.get(function(result){
$scope.entries = result;
})
get()
期望响应中有单个对象。
请阅读$resource
的{{3}}
使用:
Entry.query({field1: 'criterion'})
用于查询和多个资源。Entry.get({_id: 'someid'})
代表单一资源。Entry.save({my: 'properties'})
保存现有资源或创建新资源。Entry.delete({_id: 'someid'})
用于删除单个资源。下次请直接发布相关代码(IE $resource
来电)。