1.在home.module.ts里面的imports里面添加ComponentsModule
2.在上面引入import { ComponentsModule } from '../../components/components.module';

3.组件的components.module.ts里面的imports里面导入IonicModule
4.在组件components.module.ts里面引入import { IonicModule } from 'ionic-angular';

网友评论