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

footer-ctrl.js 595B

123456789101112131415161718192021222324252627
  1. /**
  2. * @ngdoc function
  3. * @name domainManagerApp.controller:AboutCtrl
  4. * @description
  5. * # AboutCtrl
  6. * Controller of the domainManagerApp
  7. */
  8. angular.module('codexApp.footer', [])
  9. .controller('FooterCtrl',['$scope', '$rootScope', '$state', 'FileService', function ($scope, $rootScope, $state, FileService) {
  10. console.log('-> Footer loaded')
  11. $rootScope.$on('footer:info', function(info, data) {
  12. if(!$scope.$$phase) {
  13. $scope.$apply(function(){
  14. $scope.footer_info = data;
  15. });
  16. } else {
  17. $scope.footer_info = data;
  18. }
  19. });
  20. }]);