新建命令 : ionic generate component XXX(组件名称)

新建之后生成文件目录如下:

ionic 新建component

conponents.modules.ts文件是自动生成的。

之后编辑html时报错,不支持*ngIf、*ngFor事件,在conponents.modules.ts文件中配置

ionic 新建component

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-06
  • 2021-08-26
  • 2021-07-16
猜你喜欢
  • 2021-10-13
  • 2021-10-23
  • 2021-06-29
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案