angular submit with required 1

angular submit with required

<-- The important thing here is the "ngNativeValidate" -->

Here is what the above code is Doing:
1. The form is using the ngNativeValidate directive.
2. The input fields are using the required attribute.
3. The submit button is of type submit.

The above code will work in all browsers except IE9 and below.

If you want to support IE9 and below, you can use the following code:

Similar Posts