score:3

As seen on this issue, if you use Angular CLI you only need to add this to the scripts array in angular-cli.json:

"../node_modules/chart.js/dist/Chart.bundle.min.js"

Restart your application, live reload won't do the trick.

score:16

After you do npm install chart.js,

You can simply use

import Chart from 'chart.js'

to import chart.js Hope it helps.


Related Query

More Query from same tag