API Documentation / NavigationGuard

Interface: NavigationGuard

Callable

NavigationGuard(to, from, next): NavigationGuardReturn | Promise<NavigationGuardReturn>

Navigation guard. See Navigation Guards.

Parameters

NameType
toRouteLocationNormalized
fromRouteLocationNormalized
nextNavigationGuardNext

Returns

NavigationGuardReturn | Promise<NavigationGuardReturn>