We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I would like to use the directive with an options object and change some params based on user input in runtime.
I found that the directives accepts options only once - when I change the options object, directive doesn't know about it.
Is it known issue?
thanks.
HTML:
<input type="text" matInput placeholder="Primary Address" formControlName="primaryAddressFormControl" ngx-google-places-autocomplete [options]="placesAutocompleteOptions" (onAddressChange)="handleAddressChange($event)"/>
TS:
// onInit this.placesAutocompleteOptions = { types: [ '(cities)' ], componentRestrictions: { country: 'us'} };
// when user selects new country in dropdown handleCountryChange($event) { this.placesAutocompleteOptions.componentRestrictions.country = $event; }
The text was updated successfully, but these errors were encountered:
#33
https://github.com/skynet2/ngx-google-places-autocomplete/blob/master/example/app/app.component.ts#L51
Sorry, something went wrong.
ref.reset() helped, thank you!
This example should be documented/referenced in the README
No branches or pull requests
Hello,
I would like to use the directive with an options object and change some params based on user input in runtime.
I found that the directives accepts options only once - when I change the options object, directive doesn't know about it.
Is it known issue?
thanks.
HTML:
<input type="text" matInput placeholder="Primary Address" formControlName="primaryAddressFormControl"
ngx-google-places-autocomplete
[options]="placesAutocompleteOptions" (onAddressChange)="handleAddressChange($event)"/>
TS:
// onInit
this.placesAutocompleteOptions = {
types: [ '(cities)' ],
componentRestrictions: { country: 'us'}
};
// when user selects new country in dropdown
handleCountryChange($event) {
this.placesAutocompleteOptions.componentRestrictions.country = $event;
}
The text was updated successfully, but these errors were encountered: