Skip to content

Instantly share code, notes, and snippets.

@marcandreappel
Forked from EvanWillms/ionic2-app.ts
Created July 18, 2016 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcandreappel/17953622f3c6d820a0d2e3350b34212e to your computer and use it in GitHub Desktop.
Save marcandreappel/17953622f3c6d820a0d2e3350b34212e to your computer and use it in GitHub Desktop.
Ionic2 Pushwoosh app.ts sample
import {Componente} from '@angular/core';
import {Platform, ionicBootstrap} from 'ionic-angular';
import {PushwooshService} from './services/pushwoosh.service';
@Component({
template: '<ion-nav [root]="rootPage" #ionNav></ion-nav>',
})
export class MyApp {
constructor(private platform:Platform,
private pushwooshService:PushwooshService) {
platform.ready().then(() => {
this.pushwooshService.init();
});
}
ionicBootstrap(MyApp, [PushwooshService]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment