mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
Yerk not yerkin
This commit is contained in:
@ -31,30 +31,32 @@ class HomeTabPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Component({selector: 'ion-view'})
|
||||||
|
@IonicView({
|
||||||
|
template: '' +
|
||||||
|
'<ion-navbar *navbar>' +
|
||||||
|
'<ion-title>Peek</ion-title>' +
|
||||||
|
'</ion-navbar>' +
|
||||||
|
'<ion-content class="padding">' +
|
||||||
|
'</ion-content>'
|
||||||
|
})
|
||||||
|
class PeekTabPage {
|
||||||
|
constructor(nav: NavController) {
|
||||||
|
this.nav = nav;
|
||||||
|
}
|
||||||
|
push() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Component({selector: 'ion-view'})
|
@Component({selector: 'ion-view'})
|
||||||
@IonicView({
|
@IonicView({
|
||||||
template: `<ion-tabs id="tabs">
|
templateUrl: 'tabs.html'
|
||||||
<ion-tab tab-title="Home" tab-icon="ion-earth"></ion-tab>
|
|
||||||
<ion-tab tab-title="Peek" tab-icon="ion-ios-glasses">
|
|
||||||
<ion-content class="padding">
|
|
||||||
</ion-content>
|
|
||||||
</ion-tab>
|
|
||||||
<ion-tab tab-title="Me" tab-icon="ion-ios-person">
|
|
||||||
<ion-content class="padding">
|
|
||||||
</ion-content>
|
|
||||||
</ion-tab>
|
|
||||||
<ion-tab tab-title="More" tab-icon="ion-ios-more">
|
|
||||||
<ion-content class="padding">
|
|
||||||
</ion-content>
|
|
||||||
</ion-tab>
|
|
||||||
|
|
||||||
</ion-tabs>
|
|
||||||
`
|
|
||||||
})
|
})
|
||||||
class TabsPage {
|
class TabsPage {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.firstTabPage = HomeTabPage;
|
this.homeTab = HomeTabPage;
|
||||||
|
this.peekTab = PeekTabPage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
19
ionic/components/app/test/yerk/tabs.html
Normal file
19
ionic/components/app/test/yerk/tabs.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<ion-tabs id="tabs">
|
||||||
|
<ion-tab tab-title="Home" tab-icon="ion-earth" [initial]="homeTab"></ion-tab>
|
||||||
|
<ion-tab tab-title="Home" tab-icon="ion-earth" [initial]="peekTab"></ion-tab>
|
||||||
|
</ion-tabs>
|
||||||
|
<!--
|
||||||
|
<ion-tab tab-title="Home" tab-icon="ion-earth"></ion-tab>
|
||||||
|
<ion-tab tab-title="Peek" tab-icon="ion-ios-glasses">
|
||||||
|
<ion-content class="padding">
|
||||||
|
</ion-content>
|
||||||
|
</ion-tab>
|
||||||
|
<ion-tab tab-title="Me" tab-icon="ion-ios-person">
|
||||||
|
<ion-content class="padding">
|
||||||
|
</ion-content>
|
||||||
|
</ion-tab>
|
||||||
|
<ion-tab tab-title="More" tab-icon="ion-ios-more">
|
||||||
|
<ion-content class="padding">
|
||||||
|
</ion-content>
|
||||||
|
</ion-tab>
|
||||||
|
-->
|
Reference in New Issue
Block a user