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

Method hash

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

Source from the content-addressed store, hash-verified

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