refactor(demos): give each component section its own view

This commit is contained in:
Drew Rygh
2015-10-08 10:01:13 -05:00
parent c3eed60d22
commit dcebbeaf56
40 changed files with 985 additions and 276 deletions

View File

@ -0,0 +1,12 @@
<ion-navbar *navbar class="show-navbar">
<ion-title>Tabs</ion-title>
</ion-navbar>
<ion-tabs tab-bar-placement="bottom">
<ion-pane>
<ion-tab tab-title="Food" tab-icon="pizza"></ion-tab>
<ion-tab tab-title="Drinks" tab-icon="beer"></ion-tab>
<ion-tab tab-title="Hours" tab-icon="clock"></ion-tab>
</ion-tabs>
</ion-pane>

View File

@ -0,0 +1,22 @@
import {NavController, NavParams} from 'ionic/ionic';
import {IonicView, ViewController} from 'ionic/ionic';
import * as helpers from 'helpers';
@IonicView({
template: 'Hello 1',
})
class TabOneCtrl {
constructor(nav: NavController, view: ViewController) {
this.nav = nav;
this.view = view;
}
}
@IonicView({
templateUrl: 'tabs.html'
})
export class TabsPage {
constructor(nav: NavController, params: NavParams) {
this.nav = nav;
}
}