title: No component factory found for Component. Did you add it to @NgModule.entryComponents?
body: <p>I'm trying to load components dynamically in modal.</p>
  
  <p>I've added my dynamic components in app-module entryComponents:</p>
  
  <pre><code>@NgModule({
  imports: [
  myDynamicComponent
  ],
  entryComponents: [
      myDynamicComponent]
  })
  
  
  and I'm calling component so
  const componentFactory =
        this.componentFactoryResolver.resolveComponentFactory(AppConstants.dynamicComponents['AComponentType']); 
      let options: NgbModalOptions = { size: 'xl' };
      let modalRef = this.characteristicsModal.open(componentFactory, options);
  </code></pre>
  
  <p>I get error 
  No component factory found for [object Object]. Did you add it to @NgModule.entryComponents?</p>