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