NgForm
NgForm is a directive in Angular that provides a way to manage form state and validation. It is part of the NgModules system and is typically used to wrap HTML form elements. When applied to a form element, NgForm automatically tracks the state of its controls, including whether they have been touched, edited, or are valid.
The NgForm directive exposes a `value` property that contains the current values of all form controls within
Validation is handled by NgForm in conjunction with other Angular form directives, such as NgModel. NgModel
Commonly, NgForm is used with the `ngSubmit` event to handle form submission. By binding a method to