ng-pattern Email Validation using Angular Example

Today, We want to share with you ng-pattern Email Validation using Angular Example.In this post we will show you Angularjs email validation with ng-pattern example, hear for Angularjs validate email id using ng-pattern example we will give you demo and example for implement.In this post, we will learn about angular 7 email validation pattern with an example.

ng-pattern Email Validation using Angular Example

There are the Following The simple About Angularjs regex email validation Full Information With Example and source code.

As I will cover this Post with live Working example to develop Angularjs form validation with ngpattern example, so the angularjs email validation directive is used for this example is following below.

Read Also:  PHP Creating Dynamic Directory (Folder) Example

AngularJS ng-pattern Email Validation Example

Angular is a platform for building mobile & desktop web Based user friendly and light weight applications.Angular,It’s TypeScript-based open-source Angularjs web application framework.


<!DOCTYPE html>
<title>AngularJs ng-pattern Email Validation Example AngularJS Tutorials, Demo with Example -</title>
<script src=""></script>
<script type="text/javascript">
var webApplication = angular.module('ngpatternRootApplication', []);
webApplication.controller('ngpatternController', function ($scope) {
$scope.sendForm = function () {
$scope.message = "Form Validated";
<div ng-app="ngpatternRootApplication" ng-controller="ngpatternController">
<h3>AngularJs ng-pattern Email Validation Example</h3>
<form name="memberForm" novalidate ng-submit="memberForm.$valid &&sendForm()">
Email:<input type="text" name="email" ng-model="txtmail" ng-pattern="/^[^\[email protected]][email protected][^\[email protected]]+\.[^\[email protected]]{2,}$/" required />
<span style="color:#c60000" ng-show="$error.required"> Required! </span>
<span style="color:#c60000" ng-show="$dirty&&$error.pattern">Please Enter Valid Email</span>
<hr /><hr />
<button type="submit">Submit Form</button><hr /><hr />

Free Live Chat for Any Issue
Web Programming Tutorials Example with Demo

Read :

Read Also:  Laravel jQuery Ajax Upload Multiple Images


You can also read about AngularJS, ASP.NET, VueJs, PHP.


I hope you get an idea about angularjs email validation in controller.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.