Skip to content

"ng destroy component" doesn't remove the "import" statement from "app.module.ts", nor does it remove the component from the declarations array #1788

@NgxDev

Description

@NgxDev

When generating a component, the CLI makes necessary changes to "app.module.ts".
I would expect that destroying a component should accomplish the opposite (remove files, remove that import statement and also remove that component from the declarations array on the @NgModule decorator).

angular-cli: 1.0.0-beta.11-webpack.2
node: 6.4.0
os: win32 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions