twilson63 / angular-pouch

A bower package repository for an angularjs module wrapper for pouchdb
http://twilson63.github.io/angular-pouch
6 stars 4 forks source link

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="https://github.com/twilson63/angular-pouch/raw/master/components/pouchdb-nightly.min/index.js"></script>
<script src="https://github.com/twilson63/angular-pouch/raw/master/components/angular/angular.js"></script>
<script src="https://github.com/twilson63/angular-pouch/raw/master/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