restangular
restangular copied to clipboard
AngularJS service to handle Rest API Restful Resources properly and easily
If you accidentally call an elements get method with null you get an error message telling you that you cannot call toString() on null, probably while restangular is trying to...
Hello. I'm trying to store some pagination information in `$pagination` field of my data object using addResponseInterceptor Code example: ``` return RestangularProvider.addResponseInterceptor((data, operation, what, url, response) => { var headers...
The Delete method supports body in Angular 7, window.fetch and XHR. I see no reason why it cannot be supported in Restangular out of the box without tricks with interceptors....
Since this repository didn't see any update in 2 years – not even merging simple PRs like this one https://github.com/mgonto/restangular/pull/1489 – is it fair to say that it is unmaintained?
Restangular is configured with ```setPlainByDefault(true)```. When running a query such as ```get()``` or ```getList()``` that retrieves a response with an ETag exposed, the result contains restangularEtag. ``` angular.module('app', ['restangular']) .config(function(RestangularProvider)...
I have a Restangular object returned from server, it has several Restangular methods, server data and one custom method that I added using `addRestangularMethod()`. After calling `plain()` on the object,...
i have model called taskToStaff contains ID, taskID, StaffID I need to delete documents from taskToStaff model where tskID is equal to the ID that i given. curruntlly i test...
How would one use Restangular to query single document resources. They are not a collection, and they cannot have child objects. They are a single flat object. I was thinking...
+ Just to document this for others. + Three tests fail with Angular 1.6 + Not sure if the test or the code has to be fixed + Maybe a...
Should restangular make the etag it receives a strong etag when it sends it as `if-None-Match` http header (i.e strip the `W/` from received etag when it uses it as...