jplusplus/the-accountant

View on GitHub
src/components/chart/chart.js

Summary

Maintainability
A
0 mins
Test Coverage
export const chart = {
  template: require('./chart.html'),
  bindings: {
    game: '<',
    id: '<chartId'
  },
  /** @ngInject */
  controller(Chart) {
    this.$onInit = () => {
      // Create the chart
      this.chart = new Chart(this.id, this.game);
    };
  }
};