ngAutocomplete
ngAutocomplete copied to clipboard
display only countries.
trafficstars
I would like to display only countries in the dropdown, but I can't find the option in the parameter. How can i do that? I also can't find the code place to filter the result.
Google does not offer this service. So it's not in the autocomplete. It is possible with a workaround though. But it would require to iterate through all returned objects to find out which objects have the type not set to country, and then remove those.
If implemented wrong this could give odd behaviour, so be careful :)
You should extend your autocompleteService.getPlacePrediction arg with the opts build previously to get same results.