AngularJS Input Email Validation

AngularJS Input Email Validation

AngularJS provides inbuilt email validation which uses regex which is derived from regex used in Chromium. When you enter text in input box it test for valid email and throws exception if not valid. Email validation done by this is for default standard email and if you want to change built-in validation you could use ng-pattern or modify its validators. In this example we will create one input field of type email and will use standard default email validation provided by Angular.

  • Usage:

  • AngularJSEmailValiation.html

  • Output:

2015-01-01_1932 2015-01-01_1933 2015-01-01_1933_001

  • Test this code in Plunker here

One thought on “AngularJS Input Email Validation

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *