oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

how to bind first value of data-source by default #360

Open thilankascentic opened 6 years ago

thilankascentic commented 6 years ago

Hi, I have a ng2-completer dropdown and data coming from a webservice, and its binding perfectly, but I want to show first item of datasource selected by default,

right now it looks like this,(after loading page) image

and I want to make it as this, image

can anyone help me to solve this ?

oferh commented 6 years ago

Hi @thilankascentic,

you can set ngModel value