feat: add RouterLink

This commit is contained in:
vsavkin
2016-05-24 14:33:34 -07:00
parent c9b4bcf689
commit 5b371736b2
4 changed files with 117 additions and 4 deletions

View File

@ -66,6 +66,11 @@ export class Router {
resetConfig(config: RouterConfig): void {
this.config = config;
}
/**
* @internal
*/
dispose(): void { this.locationSubscription.unsubscribe(); }
private setUpLocationChangeListener(): void {
this.locationSubscription = <any>this.location.subscribe((change) => {