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:
Sam Herrmann committed 2015-03-26 22:41:54 -04:00
1 parent be0b6b394f
commit 300d87447e
2 files changed
+5

No files matched your search

+3
View File
@@ -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");