/**
 * @ngdoc function
 * @name resumeApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the resumeApp
 */
/*jslint node: true */
/*global angular */
angular.module('resumeApp')
    .controller('MainCtrl', ['$document', '$scope', '$location', 'ngDialog', 'links', function ($document, $scope, $location, ngDialog, links) {
        'use strict';
        $document[0].title = '3D Galaxy Simulation with zoom, 200Bn stars, 180,000x120,000x40,000 light years';
        $scope.selectlink = links.links[links.indexFromView('Main')];
        $scope.links = links.links;
        $scope.go = function (link) {
            if (link.view !== 'Main') {
                links.go(link);
            }
        };

        $scope.hideModal = function () {
            ngDialog.close();
        };

        $scope.clickToOpen = function () {
            ngDialog.open({
                template: '<div class="ng-modal-overlay" ng-click="hideModal()">' +
                    '<div class="ng-modal-dialog" ng-style="dialogStyle">' +
                    '<h1>Modal Dialog Here</h1>' +
                    '<div class="ng-modal-dialog-content" ng-transclude></div>' +
                    '</div>' +
                    '</div>',
                plain: true,
                controller: 'MainCtrl',
                className: 'ngdialog-theme-default'
            });
        };
        //template: 'scripts/templates/modaldialog.html',
    }]);

/**
 * @ngdoc function
 * @name resumeApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the resumeApp
 */
/*jslint node: true */
/*global angular */
angular.module('resumeApp')
    .controller('MainCtrl', ['$document', '$scope', '$location', 'ngDialog', 'links', function ($document, $scope, $location, ngDialog, links) {
        'use strict';
        $scope.selectlink = links.links[links.indexFromView('Main')];
        $scope.links = links.links;
        $scope.go = function (link) {
            if (link.view !== 'Main') {
                links.go(link);
            }
        };

        $scope.hideModal = function () {
            ngDialog.close();
        };

        $scope.clickToOpen = function () {
            ngDialog.open({
                template: '<div class="ng-modal-overlay" ng-click="hideModal()">' +
                    '<div class="ng-modal-dialog" ng-style="dialogStyle">' +
                    '<h1>Modal Dialog Here</h1>' +
                    '<div class="ng-modal-dialog-content" ng-transclude></div>' +
                    '</div>' +
                    '</div>',
                plain: true,
                controller: 'MainCtrl',
                className: 'ngdialog-theme-default'
            });
        };
        //template: 'scripts/templates/modaldialog.html',
    }]);

Remove wrong title.