Desktop markdown wiki app. Built with node, Electron Framework and AngularJS.

prefs-service.js 351B

123456789101112131415
  1. angular.module('codexApp')
  2. .service('PrefsService', [ '$rootScope', '$http', function($rootScope, $http) {
  3. var views = ["All Notes", "All Files", "Notebooks", "Notebook"];
  4. var current_view = "All Notes"
  5. this.getCurrentView = function() {
  6. return current_view;
  7. }
  8. this.setCurrentView = function(view) {
  9. current_view = view;
  10. }
  11. }])