Hi I have two tabs and both needs to display same content/template, where I am trying the below, but it renders (runs the components in content twice) twice whether I click tab1 or tab2. So any help about reusing html is appreciated.
<mat-tab-group > <mat-tab label="Tab1"> <ng-container *ngTemplateOutlet="content"></ng-container> </mat-tab> <mat-tab label="Tab2"> <ng-container *ngTemplateOutlet="content"></ng-container> </mat-tab> </mat-tab-group> <ng-template #content> <app1></app2> <app2></app2> </ng-template> -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/b9d04d9c-84ac-419d-a032-373bc56f3c8f%40googlegroups.com.
