aboutsummaryrefslogtreecommitdiffstats
path: root/app/main/main.controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/main/main.controller.js')
-rw-r--r--app/main/main.controller.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/main/main.controller.js b/app/main/main.controller.js
new file mode 100644
index 0000000..709e67e
--- /dev/null
+++ b/app/main/main.controller.js
@@ -0,0 +1,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);
+
+})();