I created charts in each route.
When I try to navigate from one component to another component I am getting this ERROR and the page is broken. (please see the screenshot below)
Any solutions?
Thanks
<canvas baseChart id="barChart" #barChart [datasets]="chartData" [labels]="barChartLabels"
[options]="barChartOptions" [chartType]="chartType"></canvas>

Сheck if the chart exists before destroying it:
app.component.ts