Restangular.service does not have .get() method.
See original GitHub issueThere is an issue:
var test1 = Restangular.all('user').get(1).then(function(res) {
console.log('test1', res);
}); // Does not work says .get() is not defined
var test2 = Restangular.service('user').get(1).then(function(res2) {
console.log('test2', res);
}); // works fine
Am I doing anything wrong?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top Results From Across the Web
How do I add a custom method to a restangular service?
I have tried adding the following to my service with no luck (the method isn't bound to the object) and I just get...
Read more >Restangular: New Angular service to handle Restful ...
I've developer Restangular, an AngularJS service that will help you get, delete and update Restfull Resources with very few lines and very concise....
Read more >属性 | RestAngular
This method accepts 1 parameter, it could be: Boolean: Specifies if all elements should be parentless or not; Array: Specifies the routes (types)...
Read more >restangular - npm Package Health Analysis - Snyk
Restangular is an AngularJS service that simplifies common GET, POST, ... Restangular doesn't have problem with trailing slashes, additional : in the URL, ......
Read more >AngularJS Data Models: $http VS $resource VS Restangular
Note that each resulting job should be able to have a getResult() ... In this approach, we created a service that made the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With 1.5.2 version it also fails with the service
@deddu You’re right. The docs are wrong here. That PR has just been merged. I’m not sure what code I was testing when I originally commented (shame on me for not providing a code example!). This should work now as the (updated) docs say.