mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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:
@@ -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