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?
+1 for renaming and removing component
+1 for renaming and removing component
+1 for renaming
+1 for renaming and removing ... Even if a Rename meant to delete and recreate, I'm down. I usually generate a new component, and copy the old code over.
1+ renaming and removing. Any document of proper way for renaming and removing for now?
+1 for renaming
I'm so in need of this feature that i made my own (Pending the official version).
It's far from perfect and assumes that "app.module.ts"'s shape have not been too much messed up manually (that's why it's not in a repo), but it helps.
angular-4-custom-cli.zip unzip a the root of your project (same folder where you use ng ... ).
How to use:
remove:
node remove_component OldNameComponent
rename:
node rename_component OldNameComponent NewNameComponent
+1
Wow if I didn't have to rename components after refactoring that would be so awesome. +1
+1
I’m going to mute this because I’m tired of getting +1 emails. I raised this issue a long time ago but I don’t think it’s a priority to the core team.
+2
I would like to see ng destroy component myComponent and ng rename component myComponent newComponentName
+1
I'd love to be able to quickly rename or remove a module using angular-cli.
It will be much more easier and handy to use CLI for R/M/D components and services
+1
+1
+1
+1 and unsubscribe!
+1
+1