本文整理汇总了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);
}