Restangular 2.0: The future and beyond
summary
Restangular 2.0 claims a rework: ES6 classes and prototypes replace per-object monkey‑patching, the monolithic file splits into modular JavaScript pieces, and per‑resource before/after request hooks and model classes support hasOne/hasMany relations. Implementation uses $http and $q only so wrappers can let Restangular run without Angular, introduces RestangularElement/Collection (collection stores an elements array), and offers resource services that encapsulate Restangular. The refactor is a work in progress with code and issues visible on GitHub and slides linked.
AI-written summary · about
chapters (12)
- 0:00Intro
- 1:32Recap
- 2:34Dollar Resource
- 5:10Restangular
- 7:57Refactoring
- 13:19Starting the refactor
- 13:33Separating files
- 16:40Extending models
- 20:51Hooks
- 22:40Inner Resources
- 24:47Custom Services
- 26:36Conclusion








