ngx-google-places-autocomplete icon indicating copy to clipboard operation
ngx-google-places-autocomplete copied to clipboard

"google is not defined" in Angular 13

Open harleenarora opened this issue 2 years ago • 1 comments

Hi,

I have been following the example to try and add this to my application but I am getting the following error

core.js:6241 ERROR ReferenceError: google is not defined

But I load script on specific component constructor. I need this script on specific component only not a complete project.

harleenarora avatar Sep 22 '22 11:09 harleenarora

This thing happened because google is used before it initialized. 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

dancornilov avatar Feb 22 '23 08:02 dancornilov