首页 > 解决方案 > 在主体 angular2 上附加内容

问题描述

试图在 body 上显示弹出窗口..Maximum done 但没有出现在 body.Place 始终在我的应用程序中。帮我解决这个问题。

对话框.components.ts:

 constructor(private domService: ModalService) { }

 ngOnInit() {
 this.domService.appendComponentToBody(DosComponent);
 }

标签: angularangular5angular2-templateangular2-servicesangular2-directives

解决方案


推荐阅读