Check out example codes for "textarea angular onfocus". It will help you in understanding the concepts better.

Code Example 1

<input name="date" type="text" (focus)="focusFunction()" (focusout)="focusOutFunction()">

Learn ReactJs, React Native from akashmittal.com