Skip to content

Instantly share code, notes, and snippets.

@k0d3d
Created August 17, 2015 02:19
Show Gist options
  • Save k0d3d/06374f61ba0a908ec74d to your computer and use it in GitHub Desktop.
Save k0d3d/06374f61ba0a908ec74d to your computer and use it in GitHub Desktop.
Step 1, OfflineApps
<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