mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
36 lines
916 B
TypeScript
36 lines
916 B
TypeScript
import {NavController, NavParams} from 'ionic/ionic';
|
|
import {Page, ViewController} from 'ionic/ionic';
|
|
import {forwardRef} from 'angular2/angular2';
|
|
import * as helpers from '../../helpers';
|
|
|
|
|
|
@Page({
|
|
template: '' +
|
|
'<ion-navbar *navbar hide-back-button class="android-attr">' +
|
|
'<ion-title>Tabs</ion-title>' +
|
|
'</ion-navbar>' +
|
|
'<ion-content>' +
|
|
'</ion-content>',
|
|
directives: [forwardRef(() => helpers.AndroidAttribute)],
|
|
})
|
|
class TabTextPage {
|
|
constructor() {
|
|
}
|
|
}
|
|
|
|
@Page({
|
|
template:
|
|
'<ion-tabs class="tabs-basic">' +
|
|
'<ion-tab tab-title="Music" [root]="tabOne"></ion-tab>' +
|
|
'<ion-tab tab-title="Movies" [root]="tabTwo"></ion-tab>' +
|
|
'<ion-tab tab-title="Games" [root]="tabThree"></ion-tab>' +
|
|
'</ion-tabs>',
|
|
})
|
|
export class BasicPage {
|
|
constructor() {
|
|
this.tabOne = TabTextPage;
|
|
this.tabTwo = TabTextPage;
|
|
this.tabThree = TabTextPage;
|
|
}
|
|
}
|