Can someone explain the purpose of (input) in Angular? Below is a code example:
<input class="form-control" placeholder="person" (input)="filterPersons($event.target.value, 'Hair Colour')">
I have added a log inside the filterPersons method to track when it runs, but I'm not seeing any output when interacting with the input field. What exactly does (input) do?
It's worth mentioning that there are no errors and the codebase appears to be functioning correctly. There are other instances of this syntax in the codebase, so it doesn't seem to be a simple mistake, but I can't determine its purpose.