Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active October 6, 2017 21:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matthieu-D/61138c537ca4af349aa42e82c6de4d65 to your computer and use it in GitHub Desktop.
ask(question) {
ApiAIPromises.requestText({
query: question
})
.then(({result: {fulfillment: {speech}}}) => {
this.ngZone.run(()=> {
this.answer = speech;
});
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment