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

Method hash

packages/common/upgrade/src/location_shim.ts:712–721  ·  view source on GitHub ↗
(hash?: string | number | null)

Source from the content-addressed store, hash-verified

710 hash(): string;
711 hash(hash: string | number | null): this;
712 hash(hash?: string | number | null): string | this {
713 if (typeof hash === 'undefined') {
714 return this.$$hash;
715 }
716
717 this.$$hash = hash !== null ? hash.toString() : '';
718
719 this.composeUrls();
720 return this;
721 }
722
723 /**
724 * Changes to `$location` during the current `$digest` will replace the current

Callers 2

$$parseLinkUrlMethod · 0.95
urlMethod · 0.95

Calls 2

composeUrlsMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected