4 ms·
> "Use $resource instead of $http when possible. Highther level of abstraction saves you from redundency." Last time I used angular, $resource was removing tra
by alexmic 13y ago
> "Use $resource instead of $http when possible. Highther level of abstraction saves you from redundency."
Last time I used angular, $resource was removing trailing slashes [1]. This makes it hard to work with a Django backend and I had to fall back to $http.
Also, there's a typo in "redundency" – should be "redundancy".
[1] https://github.com/angular/angular.js/issues/992 https://github.com/angular/angular.js/issues/992
- flog 13y agoAnd I'm pretty sure everyone has now agreed $resource is pretty painful.