本文整理匯總了TypeScript中ngx-restangular.Restangular.restangularizeElement方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Restangular.restangularizeElement方法的具體用法?TypeScript Restangular.restangularizeElement怎麽用?TypeScript Restangular.restangularizeElement使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ngx-restangular.Restangular
的用法示例。
在下文中一共展示了Restangular.restangularizeElement方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: restangularize
/**
* If a new item has been loaded via a websocket then lets restanguarlize it
* so that the REST APIs appear on it
*/
restangularize(item: T): T {
const restangularService = this.restangularService;
const parent = restangularService.parentResource;
const route = restangularService.route;
const fromServer = restangularService.fromServer;
const collection = restangularService.restangularCollection;
const reqParams = restangularService.reqParams;
return this.restangularService.restangularizeElement(parent, item, route, fromServer, collection, reqParams);
}