vsGoogleAutocomplete
vsGoogleAutocomplete copied to clipboard
How to show City, Country after autocomplete
Thanks for great directive, I just wanted to know How can I only show the City, Country
in input field once user typed and selected some suggestion.
Currently I have below setup and its returning something like this once autocompleted.
<input type="text"
name="city"
vs-google-autocomplete="{ types:['(cities)'] }"
ng-model="user.location"
class="form-control"
placeholder="Your City"
>
its populate input with
<City>, <State>, <Country>
<City>, <State> <ZipCode>, <Country>
...
New York, NY, USA
Barcelona, Barcelona, Spain
I want just City, Country
New York, USA
Please help how can I do that. Is there any option to pass format in directive
Hi @saqueib
Unfortunately it is impossible to configure output format yet. But I will provide this feature in the next version of this plugin.
is this project dead? Why this issue has not been closed already?