This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//inspired by https://github.com/wspringer/angular-pouchdb | |
//lawnchar simple wrapper | |
// | |
//It wraps Lawnchair as a provider, allowing you to set global configuration before your | |
//dependencies are getting injected | |
// | |
//It uses $q-based promises instead of callbacks: db.get({...}) will return a promise with the results, | |
//and no longer accepts a callback as the last parameter. | |
//The same goes for all other operations that normally required callbacks. | |
// |