What is the best way to delete a component with CLI

后端 未结 14 1398
时光取名叫无心
时光取名叫无心 2020-12-22 18:35

I tried using \"ng destroy component foo\" and it tells me \"The destroy command is not supported by Angular-CLI\"

How do we properly delete components with Angular

14条回答
  •  隐瞒了意图╮
    2020-12-22 19:01

    First of all, remove component folder, which you have to delete and then remove its entries which you have made in "ts" files.

提交回复
热议问题