mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
Routing emit
This commit is contained in:
@ -158,7 +158,13 @@ export class Routable {
|
||||
this.componentClass = componentClass;
|
||||
this.routeInfo = routeInfo;
|
||||
|
||||
componentClass._route = this;
|
||||
console.log('New routable', componentClass, routeInfo);
|
||||
|
||||
componentClass.router = this;
|
||||
}
|
||||
invoke(componentInstance) {
|
||||
console.log('Routable invoke', componentInstance);
|
||||
Router.emit(this.routeInfo.url);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user