MCPcopy Index your code
hub / github.com/angular/angular / getState

Method getState

packages/common/src/location/location.ts:110–112  ·  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

108 * @returns The current value of the `history.state` object.
109 */
110 getState(): unknown {
111 return this._locationStrategy.getState();
112 }
113
114 /**
115 * 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