Contrived router example

This commit is contained in:
Max Lynch
2015-06-17 16:03:17 -05:00
parent ff13e9f3b0
commit ebe2a390cc
3 changed files with 10 additions and 5 deletions

View File

@ -6,6 +6,7 @@
export class RouterController {
constructor() {
this.routes = []
console.log('Router controller built');
}
// Build route params to send to the matching route.
@ -164,8 +165,10 @@ export class Routable {
}
invoke(componentInstance) {
console.log('Routable invoke', componentInstance);
Router.emit(this.routeInfo.url);
return this;
}
}
var Router = new RouterController();