mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
tabs advanced wip
This commit is contained in:
@ -15,20 +15,15 @@ const CACHED_STATE = 'cached';
|
||||
|
||||
export class NavBase {
|
||||
|
||||
constructor(loader, injector) {
|
||||
constructor(elementRef, loader, injector) {
|
||||
this.elementRef = elementRef;
|
||||
this.loader = loader;
|
||||
this.injector = injector;
|
||||
this.items = [];
|
||||
this.navCtrl = new NavController(this);
|
||||
this.sbTransition = null;
|
||||
this.sbActive = false;
|
||||
}
|
||||
|
||||
set initial(Component) {
|
||||
if (!this._init && Component) {
|
||||
this._init = true;
|
||||
this.push(Component);
|
||||
}
|
||||
this.domElement = elementRef.domElement;
|
||||
}
|
||||
|
||||
clear() {
|
||||
|
Reference in New Issue
Block a user