![]() |
VOOZH | about |
In this article, we are going to see what is focus event in Angular 10 and how to use it. The (focus) event is triggered when an element gains its focus.
Syntax:
<input (focus)='functionName()'/>
NgModule: Module used by focus event is:
Approach:
Example 1:
Output:
👁 ImageExample 2:
Output:
👁 Image