mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
button fixes
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
<ion-nav [initial]="initial">
|
||||
</ion-nav>
|
||||
Reference in New Issue
Block a user