ionic2-autocomplete icon indicating copy to clipboard operation
ionic2-autocomplete copied to clipboard

setValue not working

Open geogeek11 opened this issue 6 years ago • 3 comments

i've tried to set initial value of the Autocomplete Component using different methods: *i've tried this.searchbar.setValue() but it throws this error "this.DataProvider is undefined" *set keyword in this manner <ion-auto-complete [keyword]="XXXXXX" .... did not work *set keyword this.searchbar.keyword = "XXXXXXX"; did not work

i don't know if there is another manner so set value of the autocomplete component.

geogeek11 avatar Jun 21 '18 22:06 geogeek11

you resolved this problem? i'm with the same

Adejair avatar May 16 '19 13:05 Adejair

to set the placeholder I've used this code

<ion-auto-complete (itemSelected)="selected($event)" [options]="{ placeholder : 'Search', type : 'number' }" [dataProvider]="completeService" #searchbar >

geogeek11 avatar May 16 '19 14:05 geogeek11

Having this issue as well

wch94 avatar Jun 14 '19 19:06 wch94