RouteGuard
RouteGuard = (
to,from) =>boolean|Promise<boolean>
Defined in: route.ts:101
A navigation guard, as registered by setGuard: called with the route
we’re about to move to and the route we’re at now, before the change is
applied. Return false — or a promise resolving to false — to veto the
change; any other return value lets it through.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean | Promise<boolean>