Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngAfterViewInit() {
this.chart = new BarChart(
this.chartRef.nativeElement,
{
data: this.data,
options: this.options
}
);
Object.assign(this, this.chart);
}
}
componentDidMount() {
this.chart = new BC(
this.chartRef,
{
data: this.props.data,
options: this.props.options
}
);
}