ionic2-autocomplete
ionic2-autocomplete copied to clipboard
Not working in Ionic 4
It was working fine in Ionic 3. But since i a have upgraded to Ionic 4, I am getting the below error:
ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[Searchbar -> Platform]: StaticInjectorError(Platform: core)[Searchbar -> Platform]: NullInjectorError: No provider for Platform!
my code
<ion-auto-complete (itemSelected)="selectedLocation($event)" [dataProvider]="citiesProvider"></ion-auto-complete>
you still need to add
AutoCompleteModule
to @NgModule({imports: [
same as in ionic 3
Check out ionic4-auto-complete