鍍金池/ 問答/HTML/ ng-zorro-antd NzModalService 創(chuàng)建model nzC

ng-zorro-antd NzModalService 創(chuàng)建model nzContent 應用組件沒效果?

ng-zorro-antd NzModalService 創(chuàng)建model nzContent 應用組件沒效果;

nzContent:CommodityFormComponent,這樣的modal 不會加載到內(nèi)容里面;
nzContent:"ddddddd", 這樣就正常

回答
編輯回答
小眼睛

動態(tài)加載的組件需要在本模塊中 declarationsentryComponents 加入。

2018年7月21日 02:37