Skip to content Skip to sidebar Skip to footer

Highcharts Not Loading In Tabs

I have multiple tabs view with a component rendering in each one of them. Here is the code for that: <ng-template matTabContent> like so

<mat-tab-groupclass="secondary-tab-group has-header"
               [dynamicHeight]="true"mat-stretch-tabs><mat-tablabel="first"><child-component></child-component></mat-tab><mat-tablabel="second"><ng-templatematTabContent><highcharts-child-component [list]="dataList"></highcharts-child-component></ng-template></mat-tab></mat-tab-group>

You can read the angular tabs documentation here with a more basic example of lazy loading.

You don't need a parent/child component structure I have and possibly do something like this

<mat-tab-groupclass="secondary-tab-group has-header"
               [dynamicHeight]="true"mat-stretch-tabs><mat-tablabel="first">
    hello world
  </mat-tab><mat-tablabel="second"><ng-templatematTabContent><div><chart (load)="saveInstance($event.context)" [optoins]="highchartOptions"></chart></div></ng-template></mat-tab></mat-tab-group>

Post a Comment for "Highcharts Not Loading In Tabs"