首页 > Web开发 > 详细

AngularJS localforage

时间:2015-10-21 15:22:22      阅读:626      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!