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

Function fireChildActivationStart

packages/router/src/operators/check_guards.ts:139–147  ·  view source on GitHub ↗

* This should fire off `ChildActivationStart` events for each route being activated at this * level. * In other words, if you're activating `a` and `b` below, `path` will contain the * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always * return * `true`

(
  snapshot: ActivatedRouteSnapshot | null,
  forwardEvent?: (evt: Event) => void,
)

Source from the content-addressed store, hash-verified

137 * `true` so checks continue to run.
138 */
139function fireChildActivationStart(
140 snapshot: ActivatedRouteSnapshot | null,
141 forwardEvent?: (evt: Event) => void,
142): Observable<boolean> {
143 if (snapshot !== null && forwardEvent) {
144 forwardEvent(new ChildActivationStart(snapshot));
145 }
146 return of(true);
147}
148
149function runCanActivate(
150 futureRSS: RouterStateSnapshot,

Callers 1

runCanActivateChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…