MCPcopy Index your code
hub / github.com/angular/examples / sendMessage

Method sendMessage

dynamic-sdui-app/src/app/chat/chat.component.ts:200–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 }
199
200 sendMessage() {
201 if (this.newMessage.trim()) {
202 this.chatService.addUserPrompt(this.newMessage);
203 this.newMessage = '';
204 // Reset height after sending
205 const textarea = this.elementRef.nativeElement.querySelector('textarea');
206 if (textarea) {
207 textarea.style.height = 'auto';
208 }
209 }
210 }
211
212 onInput(event: Event): void {
213 const textarea = event.target as HTMLTextAreaElement;

Callers 1

askMethod · 0.80

Calls 1

addUserPromptMethod · 0.80

Tested by

no test coverage detected