I use google map API in my application like this :
import url with api key in index.html :
<script src="https://maps.googleapis.com/maps/api/js?key=myKey"></script>
and in component declare google like this :
declare let google: any;
and use it in component like this :
this.map = new google.maps.Map(document.getElementById('googleMap'), this.mapProp);
How can I change API key dynamically that exist in the index.html ?