Using local $http configuration
There're sometimes when you want to set a specific configuration $http configuration just for one Restangular's call. For that, you can use withHttpConfig
. You must call that method just before doing the HTTP request. Let's learn how to use it with the following example:
Restangular.one('accounts', 123).withHttpConfig({timeout: 100}).getList('buildings');
$scope.account.withHttpConfig({timeout: 100}).put();