I'm trying to set google maps key dynamically in my angular project.
Generally we set that API key in index.html file of angular project. Now I want to change that key dynamically. I'll be fetching that key by some API and the question is that how can I set that in my index.html. any help will be appreciated.
Index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Angular App</title>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=GOOGLE_API_KEY&libraries=places,drawing&callback=initMap"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<link rel="icon" type="image/x-icon" href="web_images/title_image.png">
</head>
</html>