Chart.js with Angular

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?

Thanks in advance

Hi there,

I found a solution.

  1. npm install --save chart.js angular-chart.js

  2. 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.

  1. include charts (chart.js) module into your angular module.