DaffLocalStorageService
import { DaffLocalStorageService } from '@daffodil/core'
@Injectable()
class DaffLocalStorageService implements DaffPersistenceService {
setItem(
key: string
value: any
): void
getItem(key: string): any
removeItem(key: string): any
clear()
}
Properties
Name | Type | Description |
---|---|---|
setItem | void | Persist the given item into local storage. |
getItem | any | Retrieve the given item from localstorage. |
removeItem | any | Remove a given item from localstorage |
clear |