If I have generated a route I would like to remove, is it enough to delete the created directory, the route path placed and the entry in the system-config.ts?
Answered on 31.01.2017 after the changes have seen-
Currently angular-cli is not supporting destroy commands ng d component/whatever
doesn't work
Since it was a remnant from ember-cli functionality and doesn't remove the imports and component/whatever from the declarations array.
It throws an error The destroy command is not supported by Angular-CLI.
You can Delete a component from terminal by typing
ng d component "your_component"
May be same way you can delete your route
ng d route "your_route_name"
I didnt tried route deletion yet but component deletion works for me, may be you can try :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With