Posted 5 June 2019, 3:27 pm EST
Hi Experts,
Using ngb-tabset, doing some logic in onTabChange($event).
<ngb-tabset *ngIf=“!isLoading” class=“tabs-top secondary max-height” [destroyOnHide]=“true” (tabChange)=“onTabChange($event)” #summarytab>
if set [destroyOnHide]=“false”, then everything seems ok.
Since the data load is quite big and rendering really takes long time. Then I was trying to set [destroyOnHide]=“true” to avoid the time cost when switching Tabs.
But it seriously throw a bunch of Errors RangeError: Maximum call stack size exceeded. Not sure what reason is this.
Could someone please help on this?
Cheers,
Kun