Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-local-db

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-local-db

An AngularJS module that provides a simple key-value browser based database API.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

angular-local-db

An AngularJS module that that provides a simple key-value browser based database API. This module utilizes the browers local storage to provide for each caching and robust offline access to stored data.

Features

  • init
  • get
  • set
  • clear
  • getIndex
  • setIndex
  • clearIndex
  • addToSet
  • clearFromSet
  • addToIndexList
  • clearFromIndexList
  • addToIndexSet
  • clearFromIndexSet
  • getSecondaryIndex
  • setSecondaryIndex
  • clearSecondaryIndex
  • addToSecondaryIndexList
  • clearFromSecondaryIndexList
  • addToSecondaryIndexSet
  • clearFromSecondaryIndexSet

Install

Bower

bower install angular-local-db --save

NPM

npm install angular-local-db --save

Usage

Require angular-local-db

angular.module('app', [
    'angular-local-db'
]).controller('Ctrl', function(
    $scope,
    $localDb
){});

Methods

init(options)

Initializes the localDb instance namespace. This is useful to allow for caching of many users data on the same browser.

$localDb.init({namespace: User.id})

get(key)

Gets the stored value for the assigned key.

let myValue = $localDb.get(myKey)

Todos

  • ngdoc Documentation
  • Unit Tests
  • Gulp Tasks

Any contribution will be appreciated.

Keywords

FAQs

Package last updated on 14 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc