Skip to content

Commit

Permalink
fix(chartist-cmp): unset chart reference on component destruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimio committed Jan 16, 2019
1 parent 0498e3e commit 985d068
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ng-chartist/src/lib/chartist.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class ChartistComponent implements OnInit, OnChanges, OnDestroy {
ngOnDestroy(): void {
if (this.chart) {
this.chart.detach();
this.chart = null;
}
}

Expand Down

0 comments on commit 985d068

Please sign in to comment.