You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Please file an issue or make a PR if you spot any problems or you have any furth
18
18
-[Installation](#installation)
19
19
-[Usage & Examples](#usage-examples)
20
20
-[New hooks for pages](#new-hooks-for-pages)
21
+
-[TypeScript](#typescript)
21
22
-[API & Limitations](#api-limitations)
22
23
-[Troubleshooting](#troubleshooting)
23
24
@@ -175,6 +176,9 @@ export default {
175
176
| navigatedTo |`beforeRouteEnter`| To trigger it properly you need to access component instance. You can use `next(vm => ...)` callback within `beforeRouteEnter()`. Please check Vue-Router docs for more details. |
176
177
| navigatedFrom | - | This event is tricky to control for developers. There is no exact mapping of it in the router. For store state cleanup use build-in meta dispatcher instead. For component state you could opt for using `beforeRouteLeave()`. |
177
178
179
+
## TypeScript Support
180
+
If you need a TS support and it's not detected in your project for some reason, you can copy paste content of [typings/shims.vue.d.ts](https://github.com/MattCCC/nativescript-vue-router-extended/blob/master/src/typings/shims-vue.d.ts) file into your typings/ directory so to bring proper support in .vue files.
181
+
178
182
## API & Limitations
179
183
180
184
This plugin aims for compatibility with Vue Router 3+ and Vue Router 4+. Both should be easily supported. Please refer to [Vue Router Docs](https://next.router.vuejs.org/guide/) for more information. There are some obvious limitations like lack of DOM accessibility and related events, or lack of <router-link /> component.
0 commit comments