title: EntryComponents in Module for LazyLoading
body: <p>I want to load a modal from a component. In Angular Material documentation is write to add the modal component in entryComponents :</p>
  
  <p>This : </p>
  
  <pre><code>@NgModule({
    imports: [
      CommonModule,
      AidesRoutingModule
    ],
    declarations: [TypesAidesComponent, TypesAidesAjouterComponent],
    entryComponents : [TypesAidesAjouterComponent]
  })
  export class AidesModule {
  
  }
  </code></pre>
  
  <p>In TypesAidesComponent I want open dialog with TypesAidesAjouterComponent :</p>
  
  <pre><code>let dialog = this.dialog.open(TypesAidesAjouterComponent);
      dialog.afterClosed().subscribe(res =&gt; {
        if(res){
          this.collection.addItem(res);
        }
      });
  </code></pre>
  
  <p>I'm in a component lazyloading : </p>
  
  <pre><code>{
          path: 'types-aides',
          loadChildren: 'app/modules/aides/aides.module#AidesModule'
      },
  </code></pre>
  
  <p>But I have this error :</p>
  
  <p><strong>Error: No component factory found for TypesAidesAjouterComponent. Did you add it to @NgModule.entryComponents?</strong></p>
  
  <p>I have found a solution, it is to move remove the LazyLoading but my application is large and is not a possibility.</p>
  
  <p>Do you have any suggestions ?</p>