Skip to content

Commit 8db4bca

Browse files
committed
refactor: use short form of ngModel with a signal
1 parent 4145aca commit 8db4bca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

report-app/src/app/shared/ai-assistant/ai-assistant.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ <h2>AI Assistant</h2>
6262
<div class="input-container">
6363
<textarea
6464
#userInputElement
65-
[ngModel]="userInput()"
66-
(ngModelChange)="userInput.set($event)"
65+
[(ngModel)]="userInput"
6766
placeholder="Ask a question about the report..."
6867
(keydown.enter)="$event.preventDefault(); send()"
6968
[readonly]="isLoading()"

0 commit comments

Comments
 (0)