We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af538e0 commit 394a3b6Copy full SHA for 394a3b6
types/router.d.ts
@@ -43,6 +43,7 @@ export declare class VueRouter {
43
go(n: number): void
44
back(): void
45
forward(): void
46
+ match (raw: RawLocation, current?: Route, redirectedFrom?: Location): Route
47
getMatchedComponents(to?: RawLocation | Route): Component[]
48
onReady(cb: Function, errorCb?: ErrorHandler): void
49
onError(cb: ErrorHandler): void
types/test/index.ts
@@ -229,6 +229,8 @@ const Components: (
229
| AsyncComponent
230
)[] = router.getMatchedComponents()
231
232
+const match: Route = router.match('/more');
233
+
234
const vm = new Vue({
235
router,
236
template: `
0 commit comments