"users" is a RestangularCollection, one -> `all

This commit is contained in:
Santi Albo
2013-08-21 10:51:25 +01:00
parent c4ce9e9723
commit 51181ea711

View File

@@ -5,7 +5,7 @@ function test_basic() {
Restangular.all('accounts');
Restangular.one('accounts', 1234);
Restangular.one('users').getList().then(function (users) {
Restangular.all('users').getList().then(function (users) {
$scope.user = users[0];
})
$scope.cars = $scope.user.getList('cars');
@@ -104,4 +104,4 @@ function test_config() {
elem.accountName = 'Changed';
return elem;
});
}
}