I have a simple autocomlete input:
<input id="..."
[(ngModel)]="value"
cAutocomplete
...
The value is a simple signal:
value = signal('')
After doing an external search following (inputChange) and reacting on (optionChange) with another http request, I want to clear the current displayed value of the input:
value.set('')
But the value of the last selected option remains displayed.
A cleaner does work, but I want to clear the value programmatically.
I have a simple autocomlete input:
The value is a simple signal:
value = signal('')After doing an external search following (inputChange) and reacting on (optionChange) with another http request, I want to clear the current displayed value of the input:
value.set('')But the value of the last selected option remains displayed.
A cleaner does work, but I want to clear the value programmatically.