Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GuillaumeDaviid/77413b717aa5e396a9831632420bf22b to your computer and use it in GitHub Desktop.
Save GuillaumeDaviid/77413b717aa5e396a9831632420bf22b to your computer and use it in GitHub Desktop.
angular handliclick
handleClick() {
this.openAiService.getDataFromOpenAI(this.newMsg).subscribe(data => {
this.botResponse = data;
});
this.newMsg = '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment