Rename / remove / move components
Please provide us with the following information:
- OS? Mac OSX (El Capitan)
- Versions. Please run
ng --version. If there's nothing outputted, please angular-cli: 1.0.0-beta.1 node: 5.7.0 os: darwin x64
It would be really usefull to add cli commands for:
- rm = removing a component
- mv = moving / renaming a component
Unless I am missing it, I don't see that this exists and it would be really useful during refactoring to avoid all the manual updates that come with this process.
Thoughts?
Fair enough. I dont pretend to know how complicated Angular setup is. But Rails has had this since its inception so I imagine there must be a solution. Isn't the most common use case of using destroy right after generate?
I'm not a proponent of rename as much as I am basic destroy functionality.
Isn't the most common use case of using destroy right after generate?
Exactly. I assume that this use case is much easier then 'create component, use if for 2 years, destroy component'.
+infinity! It would be a great improvement to add this feature!
+1
+1
+1
+1
Just noticed that I have to rename 4 components along with html and css files and it's already cumbersome...
+1 renaming a folder + 4 files is a hassle even though WebStorm keeps the references all in sync
+1 for renaming and deleting 😄
+1
+1
+1 for renaming and deleting; its like having mkdir without rmdir and mv! There should be CRUD for each entity type, not just Create BTW, I dont think a priority of "nice to have" is correct...this is missing basic functionality for such a fundamental tool.
+1. ng destroy would be excellent.
+1 for renaming
+1 for crud operations
+1 for renaming components.
+1 for renaming and removing components
+1 for renaming and removing components
+1 for renaming and removing components
+1 for renaming and removing component