title: Add an external Javascript file depends of Component Name in Angular2
body: <p>Currently I'm creating an app using Angular2 and Typescript.</p>
  
  <p>I have different components for different sections in the application (Home, Profile page, ...) and a JS file for each section (home.js, profile.js).</p>
  
  <p>I'm wondering if it's possible to include this file depends of the component is being loaded. </p>
  
  <p>Other thing I have tried is to add the javascript file into the view of the component but looks like Angular is stripping it out.</p>
  
  <p>Any advice or a better way to do this would be really appreciated.</p>
  
  <p>Thank you</p>