Use external javaScript library in angular application

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.

Leave a Comment