Last active
October 6, 2017 22:37
-
-
Save matthieu-D/dc3c2c7e44b758783d8d8d5d859a1fc5 to your computer and use it in GitHub Desktop.
This file contains 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
ask(question) { | |
ApiAIPromises.requestText({ | |
query: question | |
}) | |
.then(({result: {fulfillment: {speech}}}) => { | |
this.ngZone.run(()=> { | |
this.answers.push(speech); | |
}); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment