我想在 nzmodal 中呼叫我自己的組件。我試過這個:
<nz-modal
[(nzVisible)]="isVisible"
nzTitle="Create relation"
(nzOnCancel)="handleCancel()"
(nzOnOk)="handleOk()">
<app-label-relation-create>
</app-label-relation-create>
</nz-modal>
內部標簽關系創建我有形式。
我在路由模塊中添加了一些參考嗎?或者,有沒有更簡單的方法來做到這一點?
uj5u.com熱心網友回復:
您可以使用nzContentAPI、nzTitleAPI 和nzFooterAPI。它們接受templateRef和string作為輸入。使用templateRef將解決您的問題。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/339580.html
標籤:javascript 有角的 ng-zorro-antd
上一篇:ngClass結合多個條件?
