Skip to content

vue-router / NavigationGuardWithThis

NavigationGuardWithThis()<T> ​

Navigation Guard with a type parameter for this.

See ​

TypesConfig

Type Parameters ​

T ​

T

ts
NavigationGuardWithThis(
   this, 
   to, 
   from, 
next): _Awaitable<NavigationGuardReturn>;

Navigation Guard with a type parameter for this.

Parameters ​

this ​

T

to ​

RouteLocationNormalizedGeneric

from ​

RouteLocationNormalizedLoadedGeneric

next ​

NavigationGuardNext

Deprecated

Return a value from the guard instead of calling next(value). The callback will be removed in a future version of Vue Router.

Returns ​

_Awaitable<NavigationGuardReturn>

See ​

TypesConfig

Released under the MIT License.