title: How can I use the component of the other module in the current module?
body: <p>I have two modules. I need to show the component in the dialog box. But that component imports several components in it (more than 20). So If there was a single component I would have created in the common module. But this is more complicated. I have tried exporting the component from the other module. But that throws me an error because it's not declared in the entry components in this module. </p>
  
  <pre><code>@NgModule({
  declarations: [
      DocumentEditComponent,
      TestimonialLieuComponent,
      CommNetworkAddDialogComponent,
      GoalComponent,
      InterviewGuideComponent,
      JobCommunicationComponent,
      LearningComponent,
      MatchConfigComponent,
      PayDetailComponent,
      PerksAndBenefitsComponent,
      QuestionnaireComponent,
      VendorComponents,
      WorkRelatedComponent,
      ConfigurationComponent,
      BasicInfoComponent,
      AddDialogComponent,
      JdmDetailAddComponent,
      JdmDetailComponentComponent,
      InterviewGuideMapComponent,
      AdminOrgJdmComponent,
      AdminOrgJdmDetailComponent,
      OrgJdmAddComponent,
      OrgInterviewGuideComponent,
      OrgExperienceComponent,
      OrgCommNetworkComponent,
      OrgWorkRelatedComponent
  
  ],
  exports: [
    TestimonialTemplateComponent,
    TestimonialComponent,
    AdminOrgJdmDetailComponent
  ],
  imports: [
      CommonModule,
      TapCommonModule,
      RecruitmentConfigRoutingModule
  ],
  entryComponents: [
      PhysicaldemandEditOrgComponent,
      InterviewProcessComponent,
      AssessmentsComponent,
      CareerPathComponent,
      DocumentComponent,
      ExperienceComponent,
      GoalComponent,
      InterviewGuideComponent,
      JobCommunicationComponent,
      LearningComponent,
      MatchConfigComponent,
      PayDetailComponent,
      PerksAndBenefitsComponent,
      QuestionnaireComponent,
      VendorComponents,
      WorkRelatedComponent,
      ConfigurationComponent,
      AddDialogComponent,
      JdmDetailAddComponent,
      InterviewGuideMapComponent,
      OrgJdmAddComponent,
      AssessmentOrgAddComponent,
      CareerPathOrgAddComponent,
  
  ],
  providers: []
  })
  export class RecruitmentConfigModule {
  }
  </code></pre>
  
  <p>And am calling the component in the dialog</p>
  
  <pre><code>openJD(): void {
  let dialogRef = this.dialog.open(AdminOrgJdmDetailComponent, {
    width: '80%',
    data: this.jobDescription,
    height: '90%',
    disableClose: true
  });
  dialogRef.afterClosed().subscribe(result =&gt; {
  
  });
  </code></pre>
  
  <p>}</p>
  
  <p>This throws me an error</p>
  
  <blockquote>
    <p>VM60232 JobRequisitionAddFormComponent.ngfactory.js:230 ERROR Error: No component factory found for AdminOrgJdmDetailComponent. Did you add it to @NgModule.entryComponents?</p>
  </blockquote>
  
  <p>Any other way to solve this. Please let me know</p>