How can I make a put
request in RestAngular
?
This is what I tried.
facUpdatePartner: function (partner)
{
var url = "UpdatePartner";
var result = Restangular.one(url);
return result.put(partner);
}
I don't know you full code but should is something like this:
the
partner
need to come from a previous getOne or a get with Restangular. For example:Controller:
HTML: