Created
July 7, 2016 04:09
-
-
Save EvanWillms/c297e925877307779622ecea0c014e71 to your computer and use it in GitHub Desktop.
Ionic2 Pushwoosh app.ts sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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