我看一下
Angular API的$资源,我没有找到一些方法发送一个请求体到RESTful服务。
我知道这是可能使用$ http方法,如here,所以,是否也可以使用$ resource?
显然这是$ resource的选项。
action@H_502_8@ – {string} – The name of action. This name becomes the name of the method on your resource object.
method@H_502_8@ – {string} – HTTP request
method. Valid methods are: GET,POST,PUT,DELETE,and JSONPparams@H_502_8@ –
{object=} – Optional set of pre-bound parameters for this action.isArray@H_502_8@ – {boolean=} – If true then the returned object for this
action is an array,see returns section.
目前,我没有找到任何方式发送包含JSON对象的请求有效内容。