mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-08 15:33:26 +08:00
20 lines
697 B
JavaScript
20 lines
697 B
JavaScript
![]() |
// Ionic Starter App
|
||
|
|
||
|
// angular.module is a global place for creating, registering and retrieving Angular modules
|
||
|
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
|
||
|
// the 2nd parameter is an array of 'requires'
|
||
|
angular.module('starter', ['ionic'])
|
||
|
|
||
|
.run(function($ionicPlatform) {
|
||
|
$ionicPlatform.ready(function() {
|
||
|
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
|
||
|
// for form inputs)
|
||
|
if(window.cordova && window.cordova.plugins.Keyboard) {
|
||
|
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
|
||
|
}
|
||
|
if(window.StatusBar) {
|
||
|
StatusBar.styleDefault();
|
||
|
}
|
||
|
});
|
||
|
})
|