You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it says Type '{ types: string[]; componentRestrictions: { country: string; }; }' is missing the following properties from type 'Options': bounds, fields, strictBounds, origin
But it says Type '{ types: string[]; componentRestrictions: { country: string; }; }' is missing the following properties from type 'Options': bounds, fields, strictBounds, origin
Hi,
I really like this autocomplete function and I want to limit my search to cities only.
I tried with this solution here
[options]="{ types: ['(cities)'], componentRestrictions: {country: 'us'} }"
But it says
Type '{ types: string[]; componentRestrictions: { country: string; }; }' is missing the following properties from type 'Options': bounds, fields, strictBounds, origin
So I tried with that option
public options: Options ={ bounds: undefined, fields: [""], strictBounds: false, types: ['cities'], componentRestrictions: {country: ''} };
But
bounds
cannot beundefined
. I am not sure if the options are correct but I just want to limit my search to city onlyThe text was updated successfully, but these errors were encountered: