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

Method getState

packages/common/testing/src/location_mock.ts:57–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 getState(): unknown {
58 return this._history[this._historyIndex].state;
59 }
60
61 isCurrentPathEqualTo(path: string, query: string = ''): boolean {
62 const givenPath = path.endsWith('/') ? path.substring(0, path.length - 1) : path;

Callers 4

forwardMethod · 0.95
backMethod · 0.95
historyGoMethod · 0.95
location_spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected