Skip to content

Commit

Permalink
add alert content transcript
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Oct 21, 2024
1 parent 65172a6 commit 2e7e2b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2>Transcript Results</h2>
></textarea>
</div>

<button class="button-display-example" type="button">
<button class="button-display-example" type="button" (click)="alertExampleButton()">
{{ voiceTextTranscript }}
</button>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ export class AppComponent {
returnVoiceTranscript(transcript: string) {
this.voiceTextTranscript = transcript;
}

alertExampleButton() {
alert(this.voiceTextTranscript);
}
}

0 comments on commit 2e7e2b1

Please sign in to comment.