These are chat archives for AngularClass/NG6-starter

Jan 2016
Jan 25 2016 03:06

I'm having some trouble loading in a third-party directive (, getting a weird error.

Im including angular-chartist library in the main components file and then exporting that to my default app js - like so


import angular from 'angular';
import Home from './home/home';
import About from './about/about';
import Menu from './menu/menu';
import angularChartist from 'angular-chartist.js';

const componentModule = angular.module('app.components', [,,,

export default componentModule;


import angular from 'angular';
import uiRouter from 'angular-ui-router';
import 'ionic-sdk/release/js/ionic.bundle';
import Components from './components/components';

angular.module('app', ['ionic',])

And i'm trying to include a chart that under the 'About' component


  <chartist class="ct-chart" chartist-data="" chartist-chart-type="Bar"></chartist>
class AboutController {
  constructor(factory) { = 'ABOUT'; =[10,9,8,7,6,5];

export default ['about.factory', AboutController];

Everything compiles, but when I go to the about route I get "Uncaught TypeError: Cannot read property 'map' of undefinedChartist.getDataArray @ bundle.js:100190createChart @ bundle.js:103247initialize @ bundle.js:101394"

any ideas would be awesome, im pretty noob with es6/angular