MCPcopy Index your code
hub / github.com/angular/components / saveToStorage

Function saveToStorage

src/dev-app/dev-app/dev-app-state.ts:76–81  ·  view source on GitHub ↗
(value: DevAppState)

Source from the content-addressed store, hash-verified

74}
75
76function saveToStorage(value: DevAppState): void {
77 // Needs a try/catch since some browsers throw an error when accessing in incognito.
78 try {
79 localStorage.setItem(KEY, JSON.stringify(value));
80 } catch {}
81}

Callers 2

getAppStateFunction · 0.85
setAppStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…