角度对话框:关闭自我

时间:2018-11-13 10:59:26

标签: angular dialog

我有一个使用以下代码打开对话框的组件:

// my.component.ts
const editorRef = this.editor.open(MyDialogComponent, {});

我了解可以使用以下代码将其关闭:

// my.component.ts
editorRef.close();

但是如何从MyDialogComponent iself内部将其关闭?

尝试了一下,但是没有用:

// my-dialog.component.ts
this.close();

有什么想法吗?

0 个答案:

没有答案
相关问题