я пытаюсь сделать вкладки на моей домашней странице, но страница не загружается, когда я помещаю домашнюю страницу в качестве выбранного индекса на вкладках, вот мой код:
home.ts:
...
export class HomePage {
public isConnected: Boolean= true;
homeRoot = HomePage;
aRoot = SigninPage;
bRoot = SignupPage;
...
home.html:
///SOME CONTENT
<ion-tabs selectedIndex="0" *ngIf="isConnected">
<ion-tab [root]="homeRoot" tabTitle="Home"></ion-tab>
<ion-tab [root]="aRoot" tabTitle="Home"></ion-tab>
<ion-tab [root]="bRoot" tabTitle="Home"></ion-tab>
</ion-tabs>
app.compenents.ts:
//IMPORTS
@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage:any = HomePage;
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
});
}
}