So, I'm fairly new to angular and having hard time implementing google map API. I keep getting error:
Uncaught InvalidValueError: initialize is not a function.
I have this for the script tag:
<script src="https://maps.googleapis.com/maps/api/js?key=MY API KEY GOES HERE&callback=initialize"
async defer></script>
But since my function initialize() is inside my controller, it doesn't recognize it. If I put the function outside of the controller, it does recognize it. But since I have all the data defined within the controller, I need this inside it. I'm not even sure what I'm supposed to ask but I just need to get the map to show up. Any ideas?