▸ beforeRouteChange(guard): () => NavigationGuard[]
description Register a route change guard.
example
Code
Parameters
| Name | Type |
|---|---|
guard | NavigationGuard |
Returns
fn
▸ (): NavigationGuard[]
Returns
NavigationGuard[]
NavigationGuard
Ƭ NavigationGuard: (to: INavigationTo, from: INavigationFrom, next: () => void) =>
Promise<Any> | void
Type declaration
▸ (to, from, next): Promise<Any> | void
Parameters
| Name | Type |
|---|---|
to | INavigationTo |
from | INavigationFrom |
next | () => void |
Returns
Promise<Any> | void
Interface: INavigationTo
| Name | Type | Description |
|---|---|---|
| type | RouteChangeType | |
| path | string | |
| query | string | |
| payload? | EventTabItemTapOptions |
Interface: INavigationFrom
| Name | Type | Description |
|---|---|---|
| path | string | |
| query | string |
Any
Ƭ Any: any
此页面是否有帮助?
Last modified on