mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Add missing plain and clone method to restangular IElement
See https://github.com/mgonto/restangular#element-methods for documentation on the methods.
This commit is contained in:
1 parent
be0b6b394f
commit
300d87447e
2 files changed
+5
No files matched your search
@@ -82,6 +82,9 @@ myApp.controller('TestCtrl', (
|
||||
Restangular.one('accounts', 123).getList('buildings');
|
||||
Restangular.one('accounts', 123).getList<String>('buildings');
|
||||
|
||||
var accountData = Restangular.one('accounts', 123).plain();
|
||||
var accountClone: restangular.IElement = Restangular.one('accounts', 123).clone();
|
||||
|
||||
baseAccounts.getList().then(function (accounts) {
|
||||
var firstAccount = accounts[0];
|
||||
$scope.buildings = firstAccount.getList("buildings");
|
||||
|
||||
Reference in new issue
Block a user