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

Method setItem

adev/shared-docs/providers/local-storage.ts:62–66  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

60 }
61
62 setItem(key: string, value: string): void {
63 try {
64 localStorage.setItem(key, value);
65 } catch {}
66 }
67}

Callers 9

constructorMethod · 0.45
initComponentFunction · 0.45
acceptMethod · 0.45
closeMethod · 0.45
updateHistoryMethod · 0.45
setLsItemsMethod · 0.45

Calls

no outgoing calls

Tested by 1

initComponentFunction · 0.36