Add some properties to Restangularized Elements (#9240)

When an element is restangularized it often has one to many of the properties added in this proposed code change.  Leveraging the route, id, and reqParams gives greater functionality to restangularized objects in typescript projects.
This commit is contained in:
Brendon Colburn
2016-05-14 10:26:58 -04:00
committed by Masahiro Wakame
parent 1ec3d510e0
commit 1f8e49ff30

View File

@@ -116,6 +116,9 @@ declare namespace restangular {
withHttpConfig(httpConfig: angular.IRequestShortcutConfig): IElement;
save(queryParams?: any, headers?: any): IPromise<any>;
getRestangularUrl(): string;
route?: string;
id?: string;
reqParams?: any;
}
interface ICollection extends IService, Array<any> {