Keeps component values in Web Storage rather than in the page, so they survive reloads. Values kept in
localStorage are also shared by every page of the site open in the browser, and stay in step whichever page
writes them.
Values are stored as JSON: only values surviving a JSON round trip read back as they were set.
Web Storage state.
Keeps component values in Web Storage rather than in the page, so they survive reloads. Values kept in
localStorageare also shared by every page of the site open in the browser, and stay in step whichever page writes them.Values are stored as JSON: only values surviving a JSON round trip read back as they were set.
See
Web Storage API