import {Component, View as NgView} from 'angular2/angular2' import {View, NavPane} from 'ionic/ionic' @Component({ selector: 'privacy-settings' }) @NgView({ template: ` Privacy `, directives: [View] }) export class PrivacyPage { constructor(navPane: NavPane) { this.navPane = navPane } next() { this.navPane.push(PrivacyP1) } } @Component({ selector: 'privp1' }) @NgView({ template: ` This is page 1

`, directives: [View] }) class PrivacyP1 { constructor(navPane: NavPane) { this.navPane = navPane } next() { this.navPane.push(PrivacyP2) } pop() { this.navPane.pop() } } @Component({ selector: 'privp2' }) @NgView({ template: ` Page 2 here

`, directives: [View] }) class PrivacyP2 { constructor(navPane: NavPane) { this.navPane = navPane } pop() { this.navPane.pop() } }