A script to rename a component in Angular2/4/5 generated by Angular CLI.
- Go to the root of your Angular project
- Run
npm run rename-component - Enter the name of the component you want to change
- Enter the new name of the component
- Modify the modules where you've used the components