aboutsummaryrefslogtreecommitdiffstats
path: root/app/main/main.controller.js
blob: 709e67e3f50cf5ce5c34abf304cdad8ee7490740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(function () {
    'use strict';

    /** @ngInject */
    function mainController($scope, $rootScope) {
        // Data

        //////////

        // Remove the splash screen
        $scope.$on('$viewContentAnimationEnded', function (event) {
            if (event.targetScope.$id === $scope.$id) {
                $rootScope.$broadcast('msSplashScreen::remove');
            }
        });
    }

    angular
        .module('dcaeApp.main', [])
        .controller('MainController', mainController);
    
})();