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

Method stripBaseUrl

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

Source from the content-addressed store, hash-verified

338 }
339
340 private stripBaseUrl(base: string, url: string) {
341 if (url.startsWith(base)) {
342 return url.slice(base.length);
343 }
344 return undefined;
345 }
346
347 private getServerBase() {
348 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