I have to create a page with tabs layout, wherein, the page will contain the tab bar button which will bind dynamically. Also I require to show the body content, which will however also be dynamically binded
I have tried with the below given code. But there arises an error showing "'ion-tab' is not a known element: 1. If 'ion-tab' is an Angular component, then verify that it is part of this module. 2. If 'ion-tab' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message."
<ion-tabs *ngIf="tabList">
<ion-tab *ngFor="let t of tabList">
<ion-header translucent>
<ion-toolbar>
<ion-title>{{ t.name }}</ion-title>
</ion-toolbar>
</ion-header>
<ion-content fullscreen class="ion-padding">
<h1>{{ t.name }}</h1>
</ion-content>
</ion-tab>
<ion-tab-bar slot="top">
<ion-tab-button *ngFor="let t of tabList" [tab]="t.name">
<ion-label>{{ t.name }}</ion-label>
<ion-icon name="musical-note"></ion-icon>
</ion-tab-button>
</ion-tab-bar>
</ion-tabs>