Skip to content

"ng d component <component name>" is not deleting the component reference from app.module.ts and the component folder #1776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kranthiv opened this issue Aug 20, 2016 · 6 comments

Comments

@kranthiv
Copy link

  1. OS
    Linux -Ubuntu 16.04
  2. Versions.
    angular-cli : 1.0.0-beta.11-webpack.2
    node : 6.4.0
    os : linux x64
  3. Deleting component using ng d component <component_name> is not deleting component reference from app.module.ts and the folder which containing the deleted component.
    selection_003
    selection_004
@filipesilva
Copy link
Contributor

We don't support destroying generated files. This will be removed from ng help in #1807.

@usama520
Copy link

@filipesilva Please tell how to delete a component.

@filipesilva
Copy link
Contributor

@usama520 you delete the fine manually, and delete all references to it.

@Neutrino-Sunset
Copy link

That's not very useful. Either the ng cli should support developing components by adding in the creation and deletion of them, or it should not. But just doing half a job seems pointless, it serves only to demonstrate how it would be useful to have such a tool, and then leaves the user to have to write the tool themselves.

@samfortunato
Copy link

Why does Angular support generating a component from the CLI, but not deleting one?

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants