![]() |
VOOZH | about |
To submit a form in angular we have the following options:
In this tutorial, we will see how to use a specific key(Enter in this case) to submit a form.
Approach:
We can use angular keydown event to use Enter key as our submit key.
Example:
Let's create a form having both, button and Enter key as mode of form submission.
Output:
👁 Image