From 26437f240dd51df195820b7da300d3f6dfdb8336 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sun, 16 Feb 2020 23:53:43 +0100 Subject: [PATCH] refactor: use InjectionKeys for route and router --- playground/App.vue | 29 ++++++++++++++++++++++------- src/components/Link.ts | 3 ++- src/components/View.ts | 3 ++- src/index.ts | 24 ++++++++++++++++-------- src/injectKeys.ts | 7 +++++++ src/matcher/index.ts | 2 ++ src/navigationGuards.ts | 4 +++- 7 files changed, 54 insertions(+), 18 deletions(-) create mode 100644 src/injectKeys.ts diff --git a/playground/App.vue b/playground/App.vue index 93a7f575..5e75a641 100644 --- a/playground/App.vue +++ b/playground/App.vue @@ -92,6 +92,11 @@
  • /cant-leave
  • +
  • + /docs/é +