Closed Alarty closed 6 years ago
Please take a look at this.
https://stackoverflow.com/a/27867610/454252
or use AutocompleteService to prefill the value. https://stackoverflow.com/a/43101062/454252
Great, the first link did the trick.
Don't you think it would be a good add to your library ?
Don't you think it would be a good add to your library ?
No, I don't think so. This module wants to work nothing but as a wrapper of Google Maps. I am trying not to introduce another attribute( or parameter) to users, so that they don't need to learn one more.
When implementing autocomplete input, even in your example (https://ngmap.github.io/#/!places-auto-complete.html) you need to select one of the suggested entries to perform the action.
So if you start typing e.g. "Texa" and hit enter key, nothing happened (or more precisely an error but it's not the point).
A great thing would be to add an option, that take the first suggested entry and typing "Texa" and hit enter would redirect to Texas.