diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/index.html | 1 | ||||
| -rw-r--r-- | www/js/app.js | 6 | ||||
| -rw-r--r-- | www/js/controllers.js | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/www/index.html b/www/index.html index 30f5225e..a1036a84 100644 --- a/www/index.html +++ b/www/index.html @@ -20,6 +20,7 @@ <!-- cordova script (this will be a 404 during development) --> <script src="cordova.js"></script> + <script src="lib/ngCordova/dist/ng-cordova.min.js"></script> <!-- your app's js --> 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 |
