代码编织梦想

No component factory found for Tab2Page. Did you add it to @NgModule.entryComponents?-爱代码爱编程

今天用 ionic 弹出模态框时报错: No component factory found for Tab2Page. Did you add it to @NgModule.entryComponents? 这主要是因为 ionic 使用 angular 的路由懒加载方式,即用 loadChildren,如果用 component 方式则不会用这种问