mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
44 lines
710 B
TypeScript
44 lines
710 B
TypeScript
import {extend} from '../../util/util';
|
|
|
|
|
|
export class NavController {
|
|
|
|
constructor(nav) {
|
|
this._nav = nav;
|
|
}
|
|
|
|
/**
|
|
* Set the history stack to match the list of component items.
|
|
*/
|
|
setItems(items) {
|
|
return this._nav.setItems(items);
|
|
}
|
|
|
|
/**
|
|
* Clear the history stack.
|
|
*/
|
|
clear() {
|
|
return this._nav.clear();
|
|
}
|
|
|
|
/**
|
|
* Push an ew component onto the history stack.
|
|
*/
|
|
push() {
|
|
return this._nav.push.apply(this._nav, arguments);
|
|
}
|
|
|
|
/**
|
|
* Pop the top most (visible) component off the history stack.
|
|
*/
|
|
pop() {
|
|
return this._nav.pop.apply(this._nav, arguments);
|
|
}
|
|
}
|
|
|
|
export class NavParams {
|
|
constructor(params) {
|
|
extend(this, params);
|
|
}
|
|
}
|