ngSubmit
ngSubmit is an Angular directive that provides a convenient way to handle form submissions. It allows you to bind a method in your component to the submit event of an HTML form. When the form is submitted, either by clicking a submit button or pressing Enter in an input field, the specified method will be executed.
To use ngSubmit, you first define a method within your component class that will be called upon
The ngSubmit directive prevents the default browser form submission behavior, which would typically cause a page