Skip to content

vue-router / NavigationGuard

NavigationGuard()

Navigation Guard.

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

Navigation Guard.

Parameters

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>

Released under the MIT License.