我試圖用ngx模塊實現一個窗口模態,但是當它打開窗口它停留在背景和屏幕被禁用。模態窗口留在後臺(ngx模式)
這裏是我的代碼:
<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>
感謝。
難道你發佈的瀏覽器控制檯日誌? –
嗨,謝謝你的回答。我在日誌中沒有錯誤,只有警告。 – Leonardo
@Leonardo下面的答案幫助你? – Aravind