AngularJS localforage

Installation

Follow the instructions on this link

LocalForage

From now on , we can begin to use the keyword localforage from code or console developers.

Configuration

 

Localforage drivers are supported by :

localforage.INDEXEDDB localforage.WEBSQL localforage.LOCALSTORAGE Examples

 

Angular module

Now we know , potential localforage , what if do you connect with Angular.js ?.

angular – Localforage

It is a module created by the user ocombe Angular.js in which we use the full potential of localforage and Angular.js speed .

Installation

1 .- angular Download module

2 .- Add localforage and angular – localForage our index.html

3. Add as angular dependence

4 .- Set the driver database , all configuration parameters are the same for all drivers .

5 .- To use this module you need to inject dependency “$localForage ” and use the same sentence as in localforage

Follow this link for the complete documentation of angular-localforage and this for localforage .

posted @ 2015-10-21 14:06  Byron12345  阅读(373)  评论(0编辑  收藏  举报