【发布时间】:2019-09-02 22:15:52
【问题描述】:
我正在使用 MEAN Stack 框架实现一个系统。有一个标题组件。在标题组件中,我设计了一个名为“发布”的按钮。当我单击该按钮时,它应该打开一个内容为表单的窗口。该表单是在“FormComponent”中设计的。
这是我的 header.component.html。
<button (click)="openWindow()" nbButton type="button" size="small">Post</button>
header.component.ts
openWindow() {
this.windowService.open(FormComponent, { title: `Post` });
}
FormComponent.html
<form>
First name:<br>
<input type="text" name="firstname"><br>
</form>
当我单击“发布”按钮时,它会打开窗口。但它没有显示 'FormComponent' 中的 .html 文件中的内容。谁能告诉我哪里出错了?
【问题讨论】:
标签: angular6 mean-stack nebula ngx-admin