title: Error : No Component Factory Found. Did you add it to @NgModule.entryComponents?
body: <p>I am trying to create a popover on my Home Page.So I have created following function..</p>
  
  <pre><code>public presentPopover(myEvent) {
      let popover = this.popoverCtrl.create(TestComponent);
      popover.present({
        ev: myEvent
      });
    }
  </code></pre>
  
  <p>in my homepage.module.ts i have added testComponent as entry component.</p>
  
  <pre><code>import { TestModule } from './../../components/test/test.module';
  import { NgModule } from '@angular/core';
  import { IonicPageModule } from 'ionic-angular';
  import { HomePage } from './home';
  import { TestComponent } from './../../components/test/test';
  
  @NgModule({
    declarations: [
      HomePage,
    ],
    imports: [
      TestModule,
      IonicPageModule.forChild(HomePage),
    ],
    entryComponents: [
      TestComponent,
    ]
  })
  </code></pre>
  
  <p>But i am still getting this error wheni click that popover button.</p>
  
  <pre><code>ERROR Error: Uncaught (in promise): Error: No component factory found for TestComponent. Did you add it to @NgModule.entryComponents?
  Error: No component factory found for TestComponent. Did you add it to @NgModule.entryComponents?
      at noComponentFactoryError (core.js:3786)
      at CodegenComponentFactoryResolver.resolveComponentFactory (core.js:3850)
      at PopoverCmp._load (popover-component.js:41)
      at PopoverCmp.ionViewPreLoad (popover-component.js:33)
  </code></pre>
  
  <p>And I am confused why should I add this to entry Components?</p>