title: Angular - Ionic - Cannot create a popover, component injection error
body: <p>I am trying to show a Popover using Ionic Framework v3, I have a ionic page that contains a list component, in this list I have a button that will show a popover.
  So i have declared my popover component in the parent page and i have create an event emitter in the list that will send to the parent the toggle information.</p>
  
  <p>But i've got the given error :</p>
  
  <pre><code>No component factory found for PopoverComponent. Did you add it to @NgModule.entryComponents?
  </code></pre>
  
  <p>Code of the page module :</p>
  
  <pre><code>@NgModule({
      declarations: [
          PopoverComponent
      ],
      imports: [
          IonicPageModule.forChild(MyCustomPage),
      ],
      entryComponents: [
          PopoverComponent
      ]
  })
  export class MyCustomModule {}
  </code></pre>
  
  <p>Code of the page :</p>
  
  <pre><code>@Component({
      selector: 'my-custom-page',
      templateUrl: 'my-custom-page.html'
  })
  export class MyCustomPage {
  
      public constructor(public popoverCtrl: PopoverController) { }
  
      public toggleFilters() {
          const popover = this.popoverCtrl.create(PopoverComponent);
          popover.present();
      }
  }
  </code></pre>
  
  <p>template of the page :</p>
  
  <pre><code>&lt;my-custom-list (onFilterToggle)="toggleFilters()"&gt;&lt;/my-custom-list&gt;
  </code></pre>
  
  <p>Component list :</p>
  
  <pre><code> @Component({
      selector: 'my-custom-list',
      templateUrl: 'my-custom-list.component.html'
   })
   export class MyCustomListComponent {
  
       @Output() onFilterToggle: EventEmitter&lt;void&gt; = new EventEmitter&lt;void&gt;();
       public showFilters() {
           this.onFilterToggle.emit();
       }
   }
  </code></pre>
  
  <p>Component template :</p>
  
  <pre><code> &lt;button (click)="showFilters()"&gt;Test&lt;/button&gt;
  </code></pre>
  
  <p>Popover code :</p>
  
  <pre><code>@Component({
      selector: 'my-popover',
      template: '&lt;p&gt;Test&lt;/p&gt;'
  })
  export class PopoverComponent {
  
      constructor(public viewCtrl: ViewController) {}
  
      close() {
          this.viewCtrl.dismiss();
      } 
  }
  </code></pre>
  
  <p>I've got a shared module that is loaded in all my pages, i've tried to add it in here but still the same error, i've tried to add it to entryComponents in the list component, in the app module and still the same error.</p>
  
  <p>If anybody have an idea.</p>