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
Post a Comment