javascript - How to read URL from a restangular resource? -


i have restangular resource:

$scope.user.one('messages', 123).one('from', 123).getlist('unread').then(function(unread){   $scope.unread = unread; }); // get: /users/123/messages/123/from/123/unread 

i want retrieve resturl $scope.unread, like

$scope.unread.getresturl(); //returns /users/123/messages/123/from/123/unread 

i have tried inspect restangular object every extent possible. knows how resturl?

my bad. right there. somehow invisible me.

obj.getrestangularurl(); 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -