AngularJS wrapper for PouchDB
A lightweight AngularJS service for PouchDB that;
- Wraps Pouch's methods with
$q
- Makes Angular aware of asynchronous updates (via
$rootScope.$apply
)
-
Install
angular-pouchdb
via Bower:bower install --save angular-pouchdb/angular-pouchdb
-
Add
pouchdb
as a module dependency:angular.module('app', ['pouchdb']);
-
Inject the
PouchDB
service in your app:angular.service('service', function(PouchDB) { var db = new PouchDB('name'); });
- © 2013-2014 Wilfred Springer http://nxt.flotsam.nl
- © 2014 Tom Vincent http://tlvince.com/contact
Released under the MIT License.