cordova-template-ngx-onsenui
Version:
Cordova template with Onsen UI and Angular
30 lines (24 loc) • 482 B
text/typescript
import { Component, OnInit } from '@angular/core';
import { OnsNavigator } from 'ngx-onsenui';
({
selector: 'ons-page[page2]',
templateUrl: './page2.component.html',
styleUrls: ['./page2.component.css']
})
export class Page2Component implements OnInit {
/**
* Constructor
*/
constructor(private navi: OnsNavigator) { }
/**
* Initialize
*/
ngOnInit() {
}
/**
* Pop page
*/
popPage() {
this.navi.nativeElement.popPage();
}
}