mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
that whole nav overhaul thing again
This commit is contained in:
@@ -1,14 +1,2 @@
|
||||
<ion-nav [initial]="initial">
|
||||
</ion-nav>
|
||||
|
||||
<style>
|
||||
|
||||
ion-nav {
|
||||
background: black;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
background: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
<ion-nav [initial]="initial"></ion-nav>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
|
||||
<ion-toolbar><ion-title>First Page: {{ val }}</ion-title></ion-toolbar>
|
||||
<ion-navbar *navbar><ion-title>First Page Header: {{ val }}</ion-title></ion-navbar>
|
||||
|
||||
<!-- <ion-toolbar>
|
||||
First Page Sub Header: {{ val }}
|
||||
</ion-toolbar> -->
|
||||
|
||||
<ion-content class="padding">
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {NavController, Toolbar, Content} from 'ionic/ionic';
|
||||
import {NavController, NavbarTemplate, Navbar, Content} from 'ionic/ionic';
|
||||
import {SecondPage} from './second-page';
|
||||
|
||||
|
||||
@Component({selector: 'ion-view'})
|
||||
@View({
|
||||
templateUrl: 'pages/first-page.html',
|
||||
directives: [Toolbar, Content]
|
||||
directives: [NavbarTemplate, Navbar, Content]
|
||||
})
|
||||
export class FirstPage {
|
||||
constructor(
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
|
||||
<ion-toolbar><ion-title>Second Page</ion-title></ion-toolbar>
|
||||
<ion-navbar *navbar><ion-title>Second Page Header</ion-title></ion-navbar>
|
||||
|
||||
<!-- <ion-toolbar>
|
||||
Second Page Sub Header
|
||||
</ion-toolbar>
|
||||
|
||||
<ion-toolbar>
|
||||
Second Page Sub Sub Header
|
||||
</ion-toolbar> -->
|
||||
|
||||
<ion-content class="padding">
|
||||
|
||||
@@ -13,3 +20,12 @@
|
||||
</p>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<!-- <ion-toolbar>
|
||||
Second Page Sub Footer
|
||||
</ion-toolbar>
|
||||
|
||||
<ion-toolbar>
|
||||
Second Page Footer
|
||||
</ion-toolbar>
|
||||
-->
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {NavController, NavParams, Toolbar, Content} from 'ionic/ionic';
|
||||
import {NavController, NavParams, NavbarTemplate, Navbar, Content} from 'ionic/ionic';
|
||||
import {ThirdPage} from './third-page';
|
||||
|
||||
|
||||
@Component({selector: 'ion-view'})
|
||||
@View({
|
||||
templateUrl: 'pages/second-page.html',
|
||||
directives: [Toolbar, Content]
|
||||
directives: [NavbarTemplate, Navbar, Content]
|
||||
})
|
||||
export class SecondPage {
|
||||
constructor(
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
|
||||
<ion-toolbar><ion-title>Third Page</ion-title></ion-toolbar>
|
||||
<ion-navbar *navbar><ion-title>Third Page Header</ion-title></ion-navbar>
|
||||
|
||||
<!-- <ion-toolbar>
|
||||
Third Page Footer
|
||||
</ion-toolbar> -->
|
||||
|
||||
<ion-content class="padding">
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {NavController, Toolbar, Content} from 'ionic/ionic';
|
||||
import {NavController, NavbarTemplate, Navbar, Content} from 'ionic/ionic';
|
||||
|
||||
|
||||
@Component({selector: 'ion-view'})
|
||||
@View({
|
||||
templateUrl: 'pages/third-page.html',
|
||||
directives: [Toolbar, Content]
|
||||
directives: [NavbarTemplate, Navbar, Content]
|
||||
})
|
||||
export class ThirdPage {
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user