Home / Companies / Sauce Labs / Blog / Post Details
Content Deep Dive

AngularJS Data Models: $http VS $resource VS Restangular

Blog post from Sauce Labs

Post Details
Company
Date Published
Author
Bill McGee
Word Count
1,540
Language
English
Hacker News Points
-
Summary

The team at Sauce Labs has been updating their stack and refactored the list of jobs all customers see when they first log into their account. They chose Angular as their frontend MVC framework and data binding option, but struggled with modeling their data using the built-in $http service. After building a proof of concept using three different AngularJS data modeling techniques - $http, $resource, and Restangular - they found that Restangular was the most suitable approach for their needs. The main benefits of using Restangular include its promise-based design, clean code, and feature-rich functionality. However, it may be overkill for basic operations and carries additional third-party dependencies. The team is looking forward to seeing how Restangular progresses and whether it will become a good fit for them at Sauce Labs.