Skip to content

Instantly share code, notes, and snippets.

@kikill95
Last active March 17, 2016 20:49
Show Gist options
  • Select an option

  • Save kikill95/e8b1321023f16705d491 to your computer and use it in GitHub Desktop.

Select an option

Save kikill95/e8b1321023f16705d491 to your computer and use it in GitHub Desktop.
Klim
import {App, Platform} from 'ionic-framework/ionic';
import {HomePage} from './pages/home/home';
@App({
template: '<ion-nav [root]="rootPage"></ion-nav>',
config: {} // http://ionicframework.com/docs/v2/api/config/Config/
})
export class MyApp {
rootPage:any = HomePage;
constructor(platform:Platform) {
platform.ready().then(() => {
// The platform is now ready. Note: if this callback fails to fire, follow
// the Troubleshooting guide for a number of possible solutions:
//
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
//
// First, let's hide the keyboard accessory bar (only works natively) since
// that's a better default:
//
// Keyboard.setAccessoryBarVisible(false);
//
// For example, we might change the StatusBar color. This one below is
// good for dark backgrounds and light text:
// StatusBar.setStyle(StatusBar.LIGHT_CONTENT)
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment