Last active
August 29, 2015 14:03
-
-
Save jawinn/dee40236ca35c3188a7c to your computer and use it in GitHub Desktop.
OnDeviceReady for Ionic Framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Snippet from app.js | |
| .run(function($ionicPlatform, $rootScope) { | |
| $ionicPlatform.ready(function() { | |
| if(window.cordova && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| } | |
| if(window.StatusBar) { | |
| StatusBar.styleDefault(); | |
| } | |
| // ADD MORE CORDOVA STUFF HERE! | |
| // The ionicPlatform.ready can be used like OnDeviceReady | |
| }); | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment