Skip to content

Feature: When generating a NgModule, allow -m to indicate which NgModule should import it #5377

Closed

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 login -m app.module doesn't look for the -m option today . But i think it would be helpful to be able to create a NgModule and tell the CLI where you want it imported (in another module).

Without this, today we must manually import it.

This would allow it to work similar to how ng g s data -m some.module and ng g c customer -mother.module work today

Activity

  1. added 4 commits that reference this issue on Mar 17, 2017
    7278094
    5593bcb
    388d708
    ed55473
  2. added 3 commits that reference this issue on Apr 1, 2017
    64782c8
    12954d8
    a23b6b1
  3. added 4 commits that reference this issue on May 2, 2017
    52d2e12
    a1bebab
    0e9e803
    b474c94
  4. added a commit that references this issue on May 8, 2017
    8b220a4
  5. added a commit that references this issue on Apr 23, 2018
    919dff7
  6. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Sep 7, 2019
  8. added a commit that references this issue on May 29, 2026
    f2db081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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