码迷,mamicode.com
首页 > Web开发 > 详细

AngularJS localforage

时间:2015-10-21 15:22:39      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:

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 .

AngularJS localforage

标签:

原文地址:http://www.cnblogs.com/ByronWu12345/p/4897608.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!