mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
"users" is a RestangularCollection, one -> `all
This commit is contained in:
@@ -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