I'm trying to get highcharts for Angular 2 to work with my project. However, when I add the CHART_DIRECTIVES
to my directives
array in @Component
, I get the error in my browser console:
EXCEPTION: Error: Uncaught (in promise): No Directive annotation found on ChartComponent
Does anyone know what this means and how to go about fixing this??
EDIT: I'm trying to incorporate this chart package: https://www.npmjs.com/package/angular2-highcharts. I added CHART_DIRECTIVES by following the instructions on that site with:
import {Http, Headers, Response, HTTP_PROVIDERS} from 'angular2/http';
import {Component, Injectable} from 'angular2/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/common';
import {Router} from 'angular2/router';
import {Observable} from 'rxjs/Rx';
import {Routes} from '../routes.config';
import { CHART_DIRECTIVES } from 'angular2-highcharts';
@Component({
selector: 'home',
templateUrl: './app/home/home.html',
directives: [CHART_DIRECTIVES, CORE_DIRECTIVES, FORM_DIRECTIVES],
providers: [
HTTP_PROVIDERS
]
})