Ionic 3 自定义组件的使用

1. 创建组件 ionic g component myComponent myComponent为组件名称 创建好后,生成的文件如下图    2. 在Page 中使用 使用的是home 在home.html加入 1 2 3 < ion-content  padding>    < my ></ my > </ ion-content > 2.1 在home.module.ts中加入Compone
相关文章
相关标签/搜索