title: How do I add pure javascript files into Angular 4 component?
body: <p>I want to use an external javascript library in an angular 4 component but I am having trouble using it.
  The library I want to install is the plaid link library and I have downloaded the .js file and added it to the assets folder and included it into <code>angular-cli.json</code> scripts location.</p>
  
  <p>The object imported from the class is giving me the error <code>Plaid is not defined</code>. How can I successfully include the pure javascript file into angular typescript?</p>
  
  <p>This is the file I would like to include:</p>
  
  <p><a href="https://cdn.plaid.com/link/v2/stable/link-initialize.js" rel="noreferrer">https://cdn.plaid.com/link/v2/stable/link-initialize.js</a></p>
  
  <p>Thanks</p>