解決:Component Xxx is not part of any NgMo

報錯截圖 出現原因:沒有在NgModule中聲明此模板 解決辦法:將XxxComponent 添加到 xxx.module.ts文件的@NgModule位置 ,如下 當前組件是彈窗所以在entryComponents裏引入了~
相關文章
相關標籤/搜索