I have a module where I define a service like this:
.factory("Charts", function ($resource) {
return $resource("/api/charts/:chartId", {
}, {});
})
Then, on the controller I do:
var chart = new Charts({
name:$scope.name,
query:$scope.query,
since:$scope.since,
since_unit:$scope.since_unit,
interval:$scope.interval
}
);
chart.$save();
And on the server I'm receiving the POST to /api/charts instead of /api/charts/ that is what (I think) it should be.
There is a discussion in the list:
https://groups.google.com/forum/?fromgroups#!topic/angular/taypgj_D3YQ
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4