Angular-cli常用的指令

1. 创建模板ng g component模板名称

  1. ng g component test会直接生成在 app文件夹下面,出现test文件夹,包含四个文件分别是以.ts``.html``.css``.spec.ts结尾的文件
    Angular-cli 的常用指令
  2. 也可以指定存放的目录ng g component views/test,会在app文件夹下面先生成views文件夹,再生成test文件夹,最后就会生成四个文件
    Angular-cli 的常用指令

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2021-11-15
  • 2021-07-24
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2021-07-05
  • 2022-01-05
  • 2021-08-08
相关资源
相似解决方案