Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to restrict the country using the directive ? #18

Open
lordpiti opened this issue Feb 16, 2017 · 2 comments
Open

Is there a way to restrict the country using the directive ? #18

lordpiti opened this issue Feb 16, 2017 · 2 comments

Comments

@lordpiti
Copy link

Is there a way to restrict the country using the directive ?

@Hatibovic
Copy link

Yes,
you need to modify GoogleplaceDirective

var country = ''
 var options = {
        componentRestrictions: {"country": country}
    };

  this.autocomplete = new google.maps.places.Autocomplete(input, options );

@rajan-g
Copy link
Owner

rajan-g commented Nov 6, 2017

I will add and let release on my next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants