I am trying to do an auto complete in my search bar what i have done so far is.
I have an array with some strings. and then i am trying to list in my items it i am able
In order to achieve that, you just need to add a small thing to your code. Please take a look at this plunker.
Like you can see there, with the showList
variable we can show the results only after the user has searched something.
{{ item }}
We first set that variable to false
in the constructor
and then we set it to true
inside the getItems(...)
method.