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

Method stripBaseUrl

packages/common/upgrade/src/location_shim.ts:342–347  ·  view source on GitHub ↗
(base: string, url: string)

Source from the content-addressed store, hash-verified

340 }
341
342 private stripBaseUrl(base: string, url: string) {
343 if (url.startsWith(base)) {
344 return url.slice(base.length);
345 }
346 return undefined;
347 }
348
349 private getServerBase() {
350 const {protocol, hostname, port} = this.platformLocation;

Callers 3

browserUrlMethod · 0.95
$$parseMethod · 0.95
$$parseLinkUrlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected