In my app component, I have two input fields. I want to display the character count and max character limit for each input field dynamically as users type or blur on the input field.
To achieve this, I created a component that shows and hides the character count for each input field based on user input and blur events. However, I noticed a problem where the character count from one input field is being applied to another input field instead of the respective input.
For reference, you can check out the StackBlitz URL:
https://stackblitz.com/edit/angular-focusinout-event-l5bcow?file=src%2Fapp%2Fapp.component.html
I would appreciate any help in resolving this issue. Thank you in advance.