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
Since it is not yet supported using angular CLI
so here is the possible way, before that please observe what happens when you create a component/service using CLI (ex. ng g c demoComponent).
demoComponent (ng g c demoComponent).HTML,CSS,ts and a spec file dedicated to demoComponent.so do it in reverse order
app.module.tswhen removing the dependency you have to do two things.