title: Angular-CLI. How to register new module in current one?
body: <p>I've generated a modules:</p>
  
  <pre><code>$  ng generate module myTestModule
  installing module
    create src/app/my-test-module/my-test-module.module.ts
  
  $  ng generate module myTestModule2
  installing module
    create src/app/my-test-module2/my-test-module2.module.ts
  </code></pre>
  
  <p>I have usual file describes the main module <code>app.module.ts</code>. How could I register module <code>my-test-module.module.ts</code> in the <code>app.module.ts</code> and <code>my-test-module2.module.ts</code> in the <code>my-test-module.module.ts</code>?</p>
  
  <hr>
  
  <p><strong>Some more details to help improve answers</strong></p>
  
  <pre><code>$ ng generate --help
  
  module &lt;name&gt; &lt;options...&gt;
    aliases: m
    --spec (Boolean) Specifies if a spec file is generated.
    --flat (Boolean) Flag to indicate if a dir is created.
    --routing (Boolean) (Default: false) Specifies if a routing module file should be generated.
    --app (String) Specifies app name to use.
      aliases: -a &lt;value&gt;
  </code></pre>
  
  <p>no <code>-m</code> or <code>--module</code> here like declared on <a href="https://github.com/angular/angular-cli/wiki/generate-module" rel="nofollow noreferrer">wiki</a></p>
  
  <p>My angular cli:</p>
  
  <pre><code>$ ng -v
  
  @angular/cli: 1.0.1
  node: 7.4.0
  @angular/common: 4.1.3
  @angular/compiler: 4.1.3
  @angular/core: 4.1.3
  @angular/forms: 4.1.3
  @angular/http: 4.1.3
  @angular/platform-browser: 4.1.3
  @angular/platform-browser-dynamic: 4.1.3
  @angular/router: 4.1.3
  @angular/cli: 1.0.1
  @angular/compiler-cli: 4.1.3
  </code></pre>
  
  <hr>
  
  <p><strong>Some more details to help improve answers v2</strong>
  I've updated <code>angular-cli</code> to v1.2.1. I can use alias <code>-m</code></p>
  
  <pre><code>module &lt;name&gt; &lt;options...&gt;
    aliases: m
    --spec (Boolean) Specifies if a spec file is generated.
    --flat (Boolean) Flag to indicate if a dir is created.
    --routing (Boolean) (Default: false) Specifies if a routing module file should be generated.
    --app (String) Specifies app name to use.
      aliases: -a &lt;value&gt;
    --module (String) Specifies where the module should be imported.
      aliases: -m &lt;value&gt;
  </code></pre>
  
  <p>So I try</p>
  
  <pre><code>$ ng g m MyTestModuleModule34 -m AppModule
  
  installing module
  Specified module does not exist
  </code></pre>
  
  <p>But specified module is present in <code>src/app/app-module.ts</code></p>