summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/app.js6
-rw-r--r--www/js/controllers.js4
2 files changed, 7 insertions, 3 deletions
diff --git a/www/js/app.js b/www/js/app.js
index e72dd33a..b89dcb78 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -5,7 +5,11 @@ angular.module('zmApp', [
])
-.run(function ($ionicPlatform, $ionicPopup, $rootScope, $state, ZMDataModel) {
+.run(function ($ionicPlatform, $ionicPopup, $rootScope, $state, ZMDataModel,$cordovaSplashscreen) {
+
+ setTimeout(function() {
+ $cordovaSplashscreen.hide()
+ }, 5000)
ZMDataModel.init();
var loginData = ZMDataModel.getLogin();
diff --git a/www/js/controllers.js b/www/js/controllers.js
index 8e4c9e69..b590d436 100644
--- a/www/js/controllers.js
+++ b/www/js/controllers.js
@@ -1,8 +1,8 @@
-angular.module('zmApp.controllers', ['ionic', 'googlechart' ])
+
+angular.module('zmApp.controllers', ['ionic', 'googlechart', 'ngCordova' ])
.controller('zmApp.AppCtrl', function($scope, $ionicSideMenuDelegate) {
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
}
});
-//test \ No newline at end of file