<mat-button-toggle-group appearance="legacy" [(ngModel)]="selectedClockType"> <mat-button-toggle *ngFor="let item of items" [value]="item" color="primary"> {{ item.label }} </mat-button-toggle> </mat-button-toggle-group>
@for (item of items; track:item.id) { <ng-container *ngComponentOutlet="item .component"></ng-container> }
<ng-template #actionItesm let-data="data"> {{data}} </ng-template>
component-a.html
<ng-content></ng-content>
component-b.html
<ng-content></ng-content>
Am Trying to pass ngTemplate by using below code
<ng-container *ngComponentOutlet="item .component;content: actionItesm ></ng-container>
and using inside all the components that am using inside Items