Skip to content

Bug: --flat has no effect on ng generate module #5373

Closed
@johnpapa

Description

@johnpapa

OS?

Mac OSX Sierra 10.12.3

Versions.

@angular/cli: 1.0.0-rc.1
node: 6.9.1
os: darwin x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9

Repro steps.

ng g m foo
ng g m foo --flat
ng g m foo --flat true
ng g m foo --flat false

These all identically output

create src/app/foo/foo.module.ts

I would expect that --flat false would be the default (e.g. ng g m foo) and that to make it flat we would need ng g m foo --flat

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