diff options
| author | ARC <arjunrc@gmail.com> | 2015-04-26 16:53:18 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-04-26 16:53:18 -0400 |
| commit | 4af9e77693e07b35d937b6059fe48e6a4506ef6c (patch) | |
| tree | ddff19015ee5b0f05c32a2cab1fc729900abb260 /www/js | |
| parent | 4dca1b3b05110a4c77d26fdaa41c3e11595728a9 (diff) | |
added application icons and used ngCordova for splash control
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/app.js | 6 | ||||
| -rw-r--r-- | www/js/controllers.js | 4 |
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 |
