Skip to content

Conversation

@lakson
Copy link

@lakson lakson commented Jul 25, 2021

issue: options not working with Angular 11 #91

i make all variables of options class optionnal by adding ? behind

@ejazpacheco
Copy link

@lakson , my fear here would be if there was some conflict and package-lock and node_modeles are removed it will cause an issue. This worked like a charm.

import { Options } from 'ngx-google-places-autocomplete/objects/options/options';

options = {
componentRestrictions: { country: ['ca'] }
} as unknown as Options;

@dancornilov
Copy link

This thing was adjusted in new package, in general class was omitted and used interface instead. Because of inactivity of this package, I created my own package which is fully compatible with this one, code base was used from this package and adjusted to new coding standards.

You can try:
https://www.npmjs.com/package/@angular-magic/ngx-gp-autocomplete

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

Successfully merging this pull request may close these issues.

3 participants