Created
August 17, 2015 02:19
-
-
Save k0d3d/06374f61ba0a908ec74d to your computer and use it in GitHub Desktop.
Step 1, OfflineApps
This file contains 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
<body ng-app="offline-app"> | |
//include pouchdb js file | |
<script src="js/pouchdb.js"></script> | |
//bootstrap your angularjs main module | |
<script> | |
var app = angular.module('offlineApp', []); | |
app.factory('PouchDB', [function () { | |
return new PouchDB('offline'); | |
}]); | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment