本文整理匯總了TypeScript中@eg/share/catalog/catalog.service.CatalogService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.CatalogService類的具體用法?TypeScript service.CatalogService怎麽用?TypeScript service.CatalogService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了service.CatalogService類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: resolve
resolve(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Promise<any[]> {
console.debug('CatalogResolver:resolve()');
return Promise.all([
this.cat.fetchCcvms(),
this.cat.fetchCmfs(),
this.fetchSettings()
]);
}
示例2: browseByUrl
browseByUrl(params: ParamMap): void {
this.catUrl.applyUrlParams(this.searchContext, params);
const bs = this.searchContext.browseSearch;
// SearchContext applies a default fieldClass value of 'keyword'.
// Replace with 'title', since there is no 'keyword' browse.
if (bs.fieldClass === 'keyword') {
bs.fieldClass = 'title';
}
if (bs.isSearchable()) {
this.results = [];
this.cat.browse(this.searchContext)
.subscribe(result => this.addResult(result));
}
}
示例3: iconFormatLabel
iconFormatLabel(code: string): string {
return this.cat.iconFormatLabel(code);
}