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

sidebar-ctrl.js 511B

12345678910111213141516171819202122
  1. /**
  2. * @ngdoc function
  3. * @name domainManagerApp.controller:AboutCtrl
  4. * @description
  5. * # AboutCtrl
  6. * Controller of the domainManagerApp
  7. */
  8. angular.module('codexApp.sidebar', [])
  9. .controller('SidebarCtrl',['$scope', '$rootScope', '$state', function ($scope, $rootScope, $state) {
  10. console.log('-> Sidebar loaded')
  11. $scope.goToAllNotes = function() {
  12. $rootScope.$broadcast('main-window:note-list');
  13. $rootScope.$broadcast('window-view:change');
  14. $state.go("index");
  15. }
  16. }]);