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

prefs-nav-ctrl.js 896B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @ngdoc function
  3. * @name domainManagerApp.controller:AboutCtrl
  4. * @description
  5. * # AboutCtrl
  6. * Controller of the domainManagerApp
  7. */
  8. angular.module('codexApp.prefs.nav', [])
  9. .controller('PrefsNavCtrl', ['$scope', '$rootScope', '$state', '$location', 'FileService', 'PrefsService', '$timeout', function ($scope, $rootScope, $state, $location, FileService, PrefsService, $timeout) {
  10. $scope.links = [];
  11. console.log("-> Preferences/General");
  12. $scope.links[0] = "active";
  13. $scope.links[1] = "";
  14. $scope.goToGeneral = function () {
  15. console.log("-> Preferences/General")
  16. $scope.links[0] = "active";
  17. $scope.links[1] = "";
  18. $state.go("general");
  19. }
  20. $scope.goToDatabases = function () {
  21. console.log("-> Preferences/Databases")
  22. $scope.links[0] = "";
  23. $scope.links[1] = "active";
  24. $state.go("databases");
  25. }
  26. }]);