Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active October 6, 2017 21:38
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 matthieu-D/64192599df8bed127cbd87966e421fe9 to your computer and use it in GitHub Desktop.
Save matthieu-D/64192599df8bed127cbd87966e421fe9 to your computer and use it in GitHub Desktop.
import { Component, NgZone } from '@angular/core';
import { Platform } from 'ionic-angular';
declare var ApiAIPromises: any;
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
answer;
constructor(public platform: Platform, public ngZone: NgZone) {
platform.ready().then(() => {
...
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment