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

Method browserState

packages/common/upgrade/src/location_shim.ts:336–338  ·  view source on GitHub ↗

* This function emulates the $browser.state() function from AngularJS. It will cause * history.state to be cached unless changed with deep equality check.

()

Source from the content-addressed store, hash-verified

334 * history.state to be cached unless changed with deep equality check.
335 */
336 private browserState(): unknown {
337 return this.cachedState;
338 }
339
340 private stripBaseUrl(base: string, url: string) {
341 if (url.startsWith(base)) {

Callers 4

constructorMethod · 0.95
initializeMethod · 0.95
resetBrowserUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected