Hi i am working on Angular and i want this feature like switching between sections when clicked between the tabs and displaying charts.
I am getting #13 error
and chart is not being displayed here in second tab how to do it when switching between tabs.
Here is the code so far tried:
Stackblitz
Any solution will be helpful.
It doesn’t work because you’re removing/readding the rendering container for each If. Move the container outside the conditional rendered diff (*ngIf):
https://stackblitz.com/edit/angular-showdivonclicktoggle-z2mqb2?file=src/app/app.component.html