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 | |
| parent | 4dca1b3b05110a4c77d26fdaa41c3e11595728a9 (diff) | |
added application icons and used ngCordova for splash control
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 |
