HI there,
I am trying Meteor 1.3 for the first time and am having a hard time figuring out how to import packages using the ES6 Module loader syntax.
Does anyone know how to import the Angular-Chart.js package?
http://jtblin.github.io/angular-chart.js/
Thanks in advance
Hi there,
I found a solution.
-
npm install --save chart.js angular-chart.js
-
Import chart.js and angular-chart.js:
import Chart from 'chart.js/src/chart.js'; import chartjs from 'angular-chart.js';
Note, I found I had to change the name of the chart.js module in angular-chart.js ( i called it ‘chartjs’), as import chart.js brought an error.
- include charts (chart.js) module into your angular module.