button fixes

This commit is contained in:
Adam Bradley
2015-06-19 12:51:18 -05:00
parent 4e947f216d
commit 21c1b550ef
21 changed files with 128 additions and 319 deletions

View File

@@ -1,16 +0,0 @@
import {Component, View} from 'angular2/angular2'
@Component({
selector: 'settings-general'
})
@View({
template: `
<ion-view nav-title="General Stuff">
General Settings
</ion-view>
`,
directives: []
})
export class GeneralPage {
}

View File

@@ -1,74 +0,0 @@
import {Component, View} from 'angular2/angular2'
import {NavPane} from 'ionic/ionic'
@Component({ selector: 'privacy-settings' })
@View({
template: `
<ion-view nav-title="Privacy">
Privacy
<button class="button button-primary" (click)="next()">
Next
</button>
</ion-view>`,
directives: []
})
export class PrivacyPage {
constructor(navPane: NavPane) {
this.navPane = navPane
}
next() {
this.navPane.push(PrivacyP1)
}
}
@Component({ selector: 'privp1' })
@View({
template: `
<ion-view nav-title="Privacy Page 1">
This is page 1
<br/>
<button class="button button-primary" (click)="next()">
Next
</button>
<br/>
<button class="button" (click)="pop()">
Back
</button>
</ion-view>
`,
directives: []
})
class PrivacyP1 {
constructor(navPane: NavPane) {
this.navPane = navPane
}
next() {
this.navPane.push(PrivacyP2)
}
pop() {
this.navPane.pop()
}
}
@Component({ selector: 'privp2' })
@View({
template: `
<ion-view nav-title="Privacy Page 2">
Page 2 here
<br/>
<button class="button" (click)="pop()">
Back
</button>
<br/>
</ion-view>
`,
directives: []
})
class PrivacyP2 {
constructor(navPane: NavPane) {
this.navPane = navPane
}
pop() {
this.navPane.pop()
}
}

View File

@@ -1,2 +0,0 @@
<ion-nav [initial]="initial">
</ion-nav>