本文整理匯總了TypeScript中@services/dot-router/dot-router.service.DotRouterService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.DotRouterService類的具體用法?TypeScript service.DotRouterService怎麽用?TypeScript service.DotRouterService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了service.DotRouterService類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: siteChange
siteChange(site: Site): void {
this.siteService.switchSite(site);
if (this.dotRouterService.isEditPage()) {
this.dotRouterService.goToSiteBrowser();
}
}
示例2: map
map((res: DotHttpErrorHandled) => {
if (!res.redirected) {
this.dotRouterService.gotoPortlet('/content-types-angular', true);
}
return null;
})
示例3: tap
tap((res: DotHttpErrorHandled) => {
if (!res.redirected) {
this.dotRouterService.goToSiteBrowser();
}
})
示例4: onCloseWorkflowTaskEditor
/**
* Handle close event from the dot-workflow-task-detail
*
* @memberof DotWorkflowTaskComponent
*/
onCloseWorkflowTaskEditor(): void {
this.dotRouterService.gotoPortlet('/c/workflow');
this.dotIframeService.reloadData('workflow');
}
示例5: onCloseEditor
/**
* Handle close event from the iframe
*
* @memberof DotContentletsComponent
*/
onCloseEditor(): void {
this.dotRouterService.gotoPortlet(`/c/${this.dotRouterService.currentPortlet.id}`);
this.dotIframeService.reloadData(this.dotRouterService.currentPortlet.id);
}