I have an angular 4 application and I have a javascript component that I created in a javascript file : timeline.js. The javascript component works well but I w
timeline.js
you simply need to do
import * as Timeline from '../assets/js/timeline.js';
You can also do (at the top of your file) :
declare var Timeline: any;
Check also below for good practices.