ng new new-app; cd new-app/src/appng g component foong destroy component fooHey, Im have same issue but cant find any info(
The ng destroy command isn't supported. It doesn't show in ng help anymore as well.
@filipesilva What's the best way to destroy a generated component or directive then?
+1
How do we delete components properly if not with ng destroy?
In my experience the best way is to use git to figure out what was added. It's usually easy to figure out the new files, but not so easy to figure out the added imports.
We've talked about how generators maybe shouldn't auto-add the imports, but haven't decided if it's worth to change it.
@filipesilva Maybe list the files edited on generating new components + the new files?
That's a really good idea @MohamadAtieh. We list the created files but don't list the edited ones. I'll make an issue for it.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
In my experience the best way is to use git to figure out what was added. It's usually easy to figure out the new files, but not so easy to figure out the added imports.
We've talked about how generators maybe shouldn't auto-add the imports, but haven't decided if it's worth to change it.