title: Load Google Maps JS API in component [Angular]
body: <p>How is it possible to load an external <code>js</code> file, from a url in an Angular component?</p>
  
  <p>To be specific, I'm trying to load <code>google-maps-api</code> to my angular project. Currently, I'm doing it in my <code>index.html</code> like this:</p>
  
  <pre><code>&lt;script async defer src="https://maps.googleapis.com/maps/api/js?key=API_KEY&amp;callback=initMap"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Note: I'm aware of <code>angular-maps</code>. That's not an option.</p>