Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 23, 2018 15:51
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 uno-de-piera/4c302ef6d71e8c44880175dfe09e24d8 to your computer and use it in GitHub Desktop.
Save uno-de-piera/4c302ef6d71e8c44880175dfe09e24d8 to your computer and use it in GitHub Desktop.
export class MyApp {
constructor(
public platform: Platform,
public statusBar: StatusBar,
public splashScreen: SplashScreen,
public backend: BackendProvider
) {
this.initializeApp();
}
initializeApp() {
this.platform.ready().then(() => {
this.backend.anyMethod().subscribe(() => { // error dependiendo de la plataforma ¿?
});
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment