0.0.7 • Published 5 years ago

@dvs-angular/storage v0.0.7

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

Angular Components - Storage

Usage

  • in app.module import { StorageModule, Storage, LocalStorage } from '@dvs-angular/storage';

  • provide your favorite storage (LocalStorage, CookiesStorage or InMemoryStorage)

  providers: [
    ...
    {
      provide: Storage,
      useExisting: LocalStorage
    },
    ...
  ]

*if you like different provider, don't forget to import it instead of LocalStorage

  • now you can inject Storage and use methods from interface:
  has(key: string): boolean;
  get(key: string): any;
  set(key: string, value: any): void;
  delete(key: string): void;
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago