ngx-google-places-autocomplete
ngx-google-places-autocomplete copied to clipboard
"google is not defined" in Angular 13
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.
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