MCPcopy Create free account
hub / github.com/angular/angular / constructor

Method constructor

packages/router/src/router_state.ts:543–550  ·  view source on GitHub ↗

@internal

(
    /** The url from which this snapshot was created */
    public url: string,
    root: TreeNode<ActivatedRouteSnapshot>,
  )

Source from the content-addressed store, hash-verified

541export class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
542 /** @internal */
543 constructor(
544 /** The url from which this snapshot was created */
545 public url: string,
546 root: TreeNode<ActivatedRouteSnapshot>,
547 ) {
548 super(root);
549 setRouterState(<RouterStateSnapshot>this, root);
550 }
551
552 override toString(): string {
553 return serializeNode(this._root);

Callers

nothing calls this directly

Calls 1

setRouterStateFunction · 0.85

Tested by

no test coverage detected