I am using CanvasJS in my angular 2 app but i am having some trouble loading my page with charts.
I have added to my index.html page:
<script src="https://cdn.canvasjs.com/canvasjs.min.js"></script>
in my component.ts file i have added:
declare var CanvasJS: any;
var chart = new CanvasJS.Chart("chartContainer", {.....});
but when i run this i get several errors in my console:
Error: Error in :0:0 caused by: CanvasJS is not defined