Create component to specific module with Angular-CLI

后端 未结 26 1947
既然无缘
既然无缘 2021-01-29 19:46

I\'m starting to use angular-cli and I\'ve already read a lot to find an answer about what I want to do...no success, so I came here.

Is there a way to create a componen

26条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-29 20:15

    I created component based child module with specific Root Folder

    That cli command below i specified,please check out

    ng g c Repair/RepairHome -m Repair/repair.module
    

    Repair is Root Folder of our child module

    -m is --module

    c for compount

    g for generate

提交回复
热议问题