The errror:
Error: No component factory found for LangPopComponent. Did you add it to @NgModule.entryComponents?
My app.module.ts
:
@NgModule({
declarations: [
//
],
imports: [
//
ComponentsModule,
//
],
bootstrap: [IonicApp],
entryComponents: [
//
],
providers: [
//
]
})
My component.module.ts
:
@NgModule({
declarations: [LangPopComponent], // here too
entryComponents: [LangPopComponent], // see it's imported here
imports: [
TranslateModule,
IonicModule
],
exports: [LangPopComponent], // I well exported this component...
providers: [
]
})
export class ComponentsModule {}
in another page.ts
(homepage):
export class HomePage {
constructor(public popoverCtrl: PopoverController, public translate: TranslateService, public navCtrl: NavController) {
}
PresentPopover(){
let popover = this.popoverCtrl.create(LangPopComponent);
popover.present(); // ERROR HERE
}
}
The error is produced when I want to present the component with the popover library provided by Ionic. Any ideas?