I have a list of objects that I use to create material tabs as such:
<mat-tab-group>
<mat-tab *ngFor="let tripOption of tripOptions">
<ng-template mat-tab-label>
<mat-icon class="svg-frq-light-blue new-trip-image" svgIcon="{{tripOption.name}}"></mat-icon>
</ng-template>
//component would go here
</mat-tab>
</mat-tab-group>
I need to add a separate angular component to each tab. Is there a way through which i can maybe add a component on each tripOption object and then somehow embed it here from said object? Is there a decent way to do this or do I have to actually write a tab for each item in the list?