From fdfb56676e540ffd30d55dba6ea3b93e834744ff Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 16 Apr 2019 17:02:03 +0200 Subject: [PATCH] feat: change currentLocation in router instance with user navigation --- src/router.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/router.ts b/src/router.ts index 950eb2af..1f15d77d 100644 --- a/src/router.ts +++ b/src/router.ts @@ -29,6 +29,11 @@ export class Router { const matchedRoute = this.matcher.resolve(to, this.currentRoute) console.log({ to, matchedRoute }) // TODO: navigate + + this.currentRoute = { + ...to, + ...matchedRoute, + } }) } -- 2.39.5