MCPcopy
hub / github.com/angular/angular / hash

Method hash

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

Source from the content-addressed store, hash-verified

712 hash(): string;
713 hash(hash: string | number | null): this;
714 hash(hash?: string | number | null): string | this {
715 if (typeof hash === 'undefined') {
716 return this.$$hash;
717 }
718
719 this.$$hash = hash !== null ? hash.toString() : '';
720
721 this.composeUrls();
722 return this;
723 }
724
725 /**
726 * 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