Skip to content

Commit

Permalink
Step 1.9: Basic native functionality added
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 27, 2016
1 parent b61b0e4 commit 11e9f12
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/imports/app/app.component.ts
@@ -1,12 +1,18 @@
import { Component } from '@angular/core';

import { Platform } from "ionic-angular";
import { StatusBar } from "ionic-native";
import template from './app.component.html';

@Component({
selector: 'app',
template
})
export class AppComponent {
constructor() {
constructor(platform: Platform) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
});
}
}

0 comments on commit 11e9f12

Please sign in to comment.