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

Method computeHref

packages/router/src/directives/router_link.ts:578–582  ·  view source on GitHub ↗
(urlTree: UrlTree | null)

Source from the content-addressed store, hash-verified

576 }
577
578 private computeHref(urlTree: UrlTree | null): string | null {
579 return urlTree !== null && this.locationStrategy
580 ? (this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(urlTree)) ?? '')
581 : null;
582 }
583}
584
585/**

Callers 1

RouterLinkClass · 0.95

Calls 2

serializeUrlMethod · 0.80
prepareExternalUrlMethod · 0.45

Tested by

no test coverage detected