Routing emit

This commit is contained in:
Max Lynch
2015-06-17 10:00:19 -05:00
parent c85273e43f
commit d509ef4d5a
2 changed files with 14 additions and 2 deletions

View File

@ -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);
}
}