title: What is entryComponents in angular ngModule?
body: <p>I am working on an <code>Ionic</code> app ( <code>2.0.0-rc0</code> ) which depends on <code>angular 2</code> . So the new introduction of <code>ngModules</code> is included. I am adding my <code>app.module.ts.</code> below.</p>
  
  <pre class="lang-ts prettyprint-override"><code>import { NgModule } from '@angular/core';
  import { IonicApp, IonicModule } from 'ionic-angular';
  import { MyApp } from './app.component';
  import { Users } from '../pages/users/users';
  
  @NgModule({
    declarations: [
      MyApp,
      Users
    ],
    imports: [
      IonicModule.forRoot(MyApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
      MyApp,
      Users
    ]
  })
  export class AppModule {}
  </code></pre>
  
  
  
  <p>What does <code>entryComponents</code> do here? <code>Components</code> are already defined in <code>declarations</code> . So what's the need of repeating them ? What would happen if I dont include a component here?</p>