我正在尝试使用 ngx-module 实现一个窗口模式,但是当打开窗口时它停留在背景中并且屏幕被禁用。
这是我的代码:
<button md-raised-button color="primary" class="text-upper" (click)="firstModal.open()">Proveedor</button>
<modal #firstModal>
<modal-header>
<h1>I am first modal</h1>
</modal-header>
<modal-content>
This modal has its own header, content and footer.
</modal-content>
<modal-footer>
<button class="btn btn-primary" click="firstModal.close()">okay!</button>
</modal-footer>
</modal>
<button md-raised-button color="primary" class="text-upper">Marca</button>
</div>
谢谢。