mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 16:21:55 +08:00
fix tabs advanced
This commit is contained in:
@ -30,13 +30,13 @@ class SignIn {
|
|||||||
selector: 'ion-tabs-view'
|
selector: 'ion-tabs-view'
|
||||||
})
|
})
|
||||||
@IonicView({
|
@IonicView({
|
||||||
templateUrl: './pages/tabs.html'
|
templateUrl: './tabs.html'
|
||||||
})
|
})
|
||||||
|
|
||||||
class TabsPage {
|
class TabsPage {
|
||||||
constructor(nav: NavController) {
|
constructor(nav: NavController) {
|
||||||
this.tab1Initial = Tab1Page1
|
this.tab1Root = Tab1Page1
|
||||||
this.tab2Initial = Tab2Page1
|
this.tab2Root = Tab2Page1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
ionic/components/tabs/test/advanced/tabs.html
Normal file
5
ionic/components/tabs/test/advanced/tabs.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
<ion-tabs>
|
||||||
|
<ion-tab tab-title="Tab 1" tab-icon="ion-home" [root]="tab1Root"></ion-tab>
|
||||||
|
<ion-tab tab-title="Tab 2" tab-icon="ion-star" [root]="tab2Root"></ion-tab>
|
||||||
|
</ion-tabs>
|
Reference in New Issue
Block a user