我有一个md对话框组件 - DialogComponent
- 我从兄弟组件打开 - SiblingComponent
- 我想通过一些动作关闭它在dialog.component.ts
。在它的component.ts中关闭md对话框
DialogComponent
基本上是一个提交按钮的形式,提交表格带我到dialog.component.ts
功能,我正在做一些验证和发送数据到服务。
验证通过后,并发送数据,我想作出一些超时,然后自动关闭拨号窗口,但我不知道如何在dialog.component.ts
他试图从不同的组件达到他dialogRef – Carsten
actualy没有,我试图从DialogComponent :) – esquarial
@Carsten达到dialogRef,我会劝你再阅读;) –