Unique key of this data.
Value that is used if it's not stored before.
Private Readonly_Signal containing latest value.
Private_Data value that's stored.
ReadonlychangeEmits when the stored data is changed.
ReadonlydefaultValue that is used if it's not stored before.
ReadonlykeyUnique key of this data.
Last value that was set, can be changed without effecting storage.
For OnPush components, use signal instead.
ReadonlysignalSignal containing latest value (read-only).
the current value of stored data.
When you want a variable to stay in local storage and load it with a single line of code.
T is type of data to store.