Interface ILocalStorageService

Index

Methods

Methods

public bind($scope: IScope, key: string, opts?: { defaultValue?: any; storeName?: string; }): any

Parameters

  • $scope: IScope
  • key: string
  • opts?: { defaultValue?: any; storeName?: string; } optional

Returns

any

public clearAll()

public get(key: string): any

Parameters

  • key: string

Returns

any

public remove(key: string): boolean

Parameters

  • key: string

Returns

boolean

public set(key: string, value: any): any

Parameters

  • key: string
  • value: any

Returns

any

public unbind($scope: IScope, key: string, storeName?: string)

Parameters

  • $scope: IScope
  • key: string
  • storeName?: string optional