ngx-json-localstorage
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

NgxJsonLocalstorage

An Angular 7 implementation of JavaScript local storage that sets/gets values as JSON instead of pure strings.

Build Status

Build status

Usage

  1. Import NgxJsonLocalstorageModule into your application's module.
  2. Import LocalStorageService as a dependency into your Angular component or provider
  3. Set an item in local storage using the generic setter method, specificying the TypeScript type "T" for JSON serialization using setItem<T>('storage-key', storageTypeScriptObject)
  4. Get the item using the getter method, again specifying the TypeScript type "T" for JSON deserialization using getItem<T>('storage-key')

/ngx-json-localstorage/

    Package Sidebar

    Install

    npm i ngx-json-localstorage

    Weekly Downloads

    3

    Version

    1.0.0

    License

    none

    Unpacked Size

    41.8 kB

    Total Files

    23

    Last publish

    Collaborators

    • themagnificent11