Description
ngx-restangular is an Angular service that makes it simpler to call a REST API. It wraps common GET, POST, PUT and DELETE requests so that the code in your components stays short, and it returns objects that you can update and save again. The library is the follow-up to the original Restangular, which was built for AngularJS, and it was renamed from ng2-restangular to match Angular's semantic versioning. The README covers installation, compatibility with Angular versions, standalone apps and the choice of HTTP backend, along with a starter guide written for both observables and promises. Configuration options let you set the base URL, extra fields, response and error interceptors, default headers and request parameters, and the way IDs are encoded. The repository includes a demo folder with a small app that uses the library. It is maintained by the 2muchcoffee team, which says it welcomes cooperation on further development.…
Highlights
- GET, POST, PUT and DELETE calls for REST APIs
- Works with observables and promises
- Interceptors for requests, responses and errors
- Configurable base URL, headers and parameters
- Demo app included in the repository
Ratings & Reviews
No ratings yet
Be the first to rate NGX Restangular.
People also visit
NGX Restangular FAQ
What is ngx-restangular?
It is an Angular library that wraps REST API calls so that common requests take little code. It is the Angular 2 and later successor to Restangular.
How is it installed?
Run npm install ngx-restangular in your Angular project. The README lists the compatible Angular versions and how to use it in standalone apps.
Can I change how requests are sent?
Yes. The README documents configuration for the base URL, default headers and parameters, plus interceptors for requests, responses and errors.
Is there an example?
The repository has a demo folder with a small app. The README says to run npm run build, then npm start to try it.
Is it free?
Yes. It is public on GitHub and distributed as an open-source npm package.
What are the best NGX Restangular alternatives?
Popular alternatives to NGX Restangular include Angular, Angular Example App and RestClient. See all NGX Restangular alternatives














