render views working

This commit is contained in:
Adam Bradley
2015-07-31 22:35:32 -05:00
parent 984cdd07c3
commit c0223edabe
11 changed files with 94 additions and 68 deletions

View File

@@ -8,13 +8,13 @@ import {ThirdPage} from './third-page';
@IonicView({
template: '' +
'<ion-navbar *navbar primary>' +
'<ion-title>First Page</ion-title>' +
'<ion-title>{{title}}</ion-title>' +
'<ion-nav-items secondary>' +
'<button>S1</button>' +
'</ion-nav-items>' +
'</ion-navbar>' +
'<ion-content class="padding">' +
'<p>First Page</p>' +
'<p>{{title}}</p>' +
'<p><button id="from1To2" primary (click)="push()">Push (Go to 2nd)</button></p>' +
'<p><button primary [push-data]="pushData" [nav-push]="pushPage">Push w/ nav-push (Go to 2nd)</button></p>' +
'<p><button primary (click)="setItems()">setItems() (Go to 3rd, no history)</button></p>' +
@@ -30,6 +30,7 @@ export class FirstPage {
config: IonicConfig
) {
this.nav = nav;
this.title = 'First Page';
this.pushPage = SecondPage;
this.pushData = {