Angular-pouch

A bower package repository for an angularjs module wrapper for pouchdb

View project onGitHub

Angular-Pouch

An AngularJS module and bower package wrapper around the nightly build of pouchDb.

The purpose of this module is to make it super easy to install and upgrade web applications to the latest pouchDb.

html

<script src="/components/pouchdb-nightly.min/index.js"></script>
<script src="/components/angular/angular.js"></script>
<script src="/components/angular-pouch/angular-pouch.js"></script>

angular app

angular.module('App', ['angular-pouch'])
  .factory($db, function($pouch) {
    return $pouch('idb://mydbname'); 
  });

contribute

Pull requests are welcome.

License

MIT