Skip to content

Instantly share code, notes, and snippets.

@EvanWillms
Created July 7, 2016 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save EvanWillms/c297e925877307779622ecea0c014e71 to your computer and use it in GitHub Desktop.
Save EvanWillms/c297e925877307779622ecea0c014e71 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