Ошибка:
Ошибка: не найдена фабрика компонентов для LangPopComponent. Вы добавили его в @ NgModule.entryComponents?
Мой app.module.ts
:
@NgModule({
declarations: [
//
],
imports: [
//
ComponentsModule,
//
],
bootstrap: [IonicApp],
entryComponents: [
//
],
providers: [
//
]
})
Мой 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 {}
в другом page.ts
(домашняя страница):
export class HomePage {
constructor(public popoverCtrl: PopoverController, public translate: TranslateService, public navCtrl: NavController) {
}
PresentPopover(){
let popover = this.popoverCtrl.create(LangPopComponent);
popover.present(); // ERROR HERE
}
}
Ошибка возникает, когда я хочу представить компоненту библиотеку popover, предоставленную Ionic.
Есть идеи?