I'm using this pluign, on ionic 3, so I'm in lazy loading. I imported the module in my page
.module.ts :
import { NgModule} from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { NPage } from './nuovo-precario-fuori-graduatoria';
import { SelectSearchableModule } from 'ionic-select-searchable';
@NgModule({
declarations: [
NPage
],
imports: [
IonicPageModule.forChild(NPage),
SelectSearchableModule
],
})
export class NPageModule {}
Then here the html :
<ion-item >
<ion-label>Co</ion-label>
<select-searchable item-content
#selection
*ngIf="pa && pa.length>0"
margin-right
[(ngModel)] = "user"
itemValueField="code"
itemTextField="description"
[items]="pa"
[canSearch]="true"
(onChange)="countryChange($event)">
</select-searchable>
</ion-item>
I populate the array with some objects, but when I go to click on the dropdwon select icon I have this error:
ERROR Error: Uncaught (in promise): Error: No component factory found for SelectSearchablePageComponent. Did you add it to @NgModule.entryComponents? Error: No component factory found for SelectSearchablePageComponent. Did you add it to @NgModule.entryComponents?