title: Use external javaScript library in angular application
body: <p>I have an angular 4 application and I have a javascript component that I created in a javascript file : <code>timeline.js</code>. The javascript component works well but I want to use it with angular 4. So, I put my js file in the folder <code>assets/js/timeline.js</code>.</p>
  
  <p>In the file <code>index.html</code>, I call my js file with <code>&lt;script src="assets/js/timeline.js"&gt;&lt;/script&gt;</code> and in <code>app.component.ts</code>, I have :</p>
  
  <pre><code>var timeline = new Timeline("timelineVisualization")
  </code></pre>
  
  <p>So, normally, the timeline is created in the div which has <code>id="timelineVisualization"</code>.</p>
  
  <p>But it doesn't work  and I have an error on the <code>new Timeline</code> : Cannot find name Timeline.</p>
  
  <p>So, do you know how I can do to call the Timeline constructor from <code>timeline.js</code> ?</p>