×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Using ngPattern to Validate E-mail Addresses in Angular
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Tuesday Apr 24th 2018 by Srinath M S

Language: Web, Expertise: Advanced - See an example of how to validate an e-mail address using Angular's ngPattern.

Angular's ngPattern allows you to validate input using a pattern. See below for an easy example of how to validate an e-mail address using the ng-pattern.

<input name="employeeEmailAddress" type="text" ng-model="employeeEmailAddress" ng-pattern="/^(0[1-9]|[12][0-9]|3[01])[\/](0[1-9]|1[012])[\/](19|20)\d\d$/" />
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved