mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
"users" is a RestangularCollection, one -> `all
This commit is contained in:
1 parent
c4ce9e9723
commit
51181ea711
1 file changed
+2
-2
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user