Part of Web APIs for Angular
This is a library to use Web Storage API with Angular.
If you do not have @ng-web-apis/common:
npm i @ng-web-apis/common
Now install the package:
npm i @ng-web-apis/storage
How to use
Web Storage API consists of storage synthesis and storage recognition.
STORAGE_EVENTtoken to inject an
toValueutility operators to work with this
StorageEventonly fires when changes are made from another tab. To capture events from the same tab use
StorageServiceto work with
See demo for concrete usage example.
Do you also want to open-source something, but hate the collateral work? Check out this Angular Open-source Library Starter we’ve created for our projects. It got you covered on continuous integration, pre-commit checks, linting, versioning + changelog, code coverage and all that jazz.