title: Angular 2/4 loading scripts dynamically
body: <p>In angular 2 one can load CSS styles depending on the component. However, there is no corresponding way to load script files. I am currently loading all scripts on the base page of my single page applications but that results in optimization issues. </p>
  
  <p>What is the advised way of loading scripts for an Angular 2/4 component. </p>