MCPcopy Index your code
hub / github.com/angular/angular / redirectIfUrlTree

Function redirectIfUrlTree

packages/router/src/operators/check_guards.ts:254–263  ·  view source on GitHub ↗
(urlSerializer: UrlSerializer)

Source from the content-addressed store, hash-verified

252}
253
254function redirectIfUrlTree(urlSerializer: UrlSerializer): OperatorFunction<GuardResult, boolean> {
255 return pipe(
256 tap((result: GuardResult) => {
257 if (typeof result === 'boolean') return;
258
259 throw redirectingNavigationError(urlSerializer, result);
260 }),
261 map((result) => result === true),
262 );
263}
264
265export function runCanMatchGuards(
266 injector: EnvironmentInjector,

Callers 2

runCanLoadGuardsFunction · 0.85
runCanMatchGuardsFunction · 0.85

Calls 2

pipeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…