vsGoogleAutocomplete icon indicating copy to clipboard operation
vsGoogleAutocomplete copied to clipboard

How to show City, Country after autocomplete

Open saqueib opened this issue 8 years ago • 2 comments

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

saqueib avatar Nov 20 '15 06:11 saqueib

Hi @saqueib

Unfortunately it is impossible to configure output format yet. But I will provide this feature in the next version of this plugin.

vskosp avatar Nov 22 '15 21:11 vskosp

is this project dead? Why this issue has not been closed already?

victorhazbun avatar Jan 11 '18 22:01 victorhazbun