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

Method getState

packages/common/src/location/location.ts:116–118  ·  view source on GitHub ↗

* Reports the current state of the location history. * @returns The current value of the `history.state` object.

()

Source from the content-addressed store, hash-verified

114 * @returns The current value of the `history.state` object.
115 */
116 getState(): unknown {
117 return this._locationStrategy.getState();
118 }
119
120 /**
121 * Normalizes the given path and compares to the current normalized path.

Implementers 1

SpyLocationpackages/common/testing/src/location_m

Calls

no outgoing calls

Tested by 5

expectPageIndexFunction · 0.36
guardsIntegrationSuiteFunction · 0.36