Using a full URL with Restangular Using a full URL with Restangular angularjs angularjs

Using a full URL with Restangular


I'm the creator of Restangular.

You have 2 options to do that.

1) Creating scoped Restangulars with different BaseURLs in each case: https://github.com/mgonto/restangular#how-to-create-a-restangular-service-with-a-different-configuration-from-the-global-one

2) You can use it like Restangular.all('us/en/').one('products', 1726) or Restangular.one('us/en/product', 1234)

Hope it works for you :)


I needed to simply GET an absolute url and came across this question.

Here's how:

Restangular.oneUrl('routeName', 'http://absolute.url').get();

restangular#restangular-methods