mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix tabs advanced demo
This commit is contained in:
@ -32,6 +32,7 @@ class TabsPage {
|
|||||||
constructor(nav: NavController) {
|
constructor(nav: NavController) {
|
||||||
this.tab1Root = Tab1Page1
|
this.tab1Root = Tab1Page1
|
||||||
this.tab2Root = Tab2Page1
|
this.tab2Root = Tab2Page1
|
||||||
|
this.tab3Root = Tab3Page1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,6 +170,20 @@ class Tab2Page3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// tab 3
|
||||||
|
//
|
||||||
|
@IonicView({
|
||||||
|
template: '' +
|
||||||
|
'<ion-navbar *navbar>' +
|
||||||
|
'<ion-title>Tabs 3</ion-title>' +
|
||||||
|
'</ion-navbar>' +
|
||||||
|
'<ion-content class="padding"><h2>Tabs 3</h2></ion-content>'
|
||||||
|
})
|
||||||
|
class Tab3Page1 {}
|
||||||
|
|
||||||
|
|
||||||
@App({
|
@App({
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,5 @@
|
|||||||
<ion-tabs>
|
<ion-tabs>
|
||||||
<ion-tab tab-title="Heart" tab-icon="ion-ios-heart-outline" [root]="tab1Root"></ion-tab>
|
<ion-tab tab-title="Heart" tab-icon="ion-ios-heart-outline" [root]="tab1Root"></ion-tab>
|
||||||
<ion-tab tab-title="Star" tab-icon="ion-ios-star-outline" [root]="tab2Root"></ion-tab>
|
<ion-tab tab-title="Star" tab-icon="ion-ios-star-outline" [root]="tab2Root"></ion-tab>
|
||||||
<ion-tab tab-title="Stopwatch" tab-icon="ion-ios-stopwatch-outline" [root]="tab2Root"></ion-tab>
|
<ion-tab tab-title="Stopwatch" tab-icon="ion-ios-stopwatch-outline" [root]="tab3Root"></ion-tab>
|
||||||
<ion-tab tab-title="Gear" tab-icon="ion-ios-gear-outline" [root]="tab2Root"></ion-tab>
|
|
||||||
</ion-tabs>
|
</ion-tabs>
|
||||||
|
Reference in New Issue
Block a user