Before starting the sixth part I will recommend you to please go through the below parts,
 This part will teach you how to,
  	- How to call custom validation in angular JS 
Custom validation usually required when you want to call external  functionality from your code and validate the control. For example you might  need to do database validation for verifying the user name. For this you need  following things to be done.
 
 Initial requirement is reference 
 
 <script src="~/Scripts/angular.js"></script>
  	- Add directive in your angular js function. This function will verify is  	your control value is from specific string names. You may modify by giving  	service call.
 - app.directive('myDirective', function()   
- {  
-     return   
-     {  
-         require: 'ngModel',  
-         link: function(scope, element, attr, mCtrl)  
-         {  
-             function myValidation(value)  
-             {  
-                 var myarr = ["India", "ind", "india", "Ind"];  
-                 if (myarr.indexOf(value) > -1)   
-                 {  
-                     mCtrl.$setValidity('charE', true);  
-                 } else   
-                 {  
-                     mCtrl.$setValidity('charE', false);  
-                 }  
-                 return value;  
-             }  
-             mCtrl.$parsers.push(myValidation);  
-         }  
-     };  
- });  
 
-  Refer your directive in the control to be validate as below way,
 - <input name="Country" ng-model="Country" required my-directive>   
 
- Give Proper message where you want to give validation message,
 - <li ng-show="myForm.Country.$invalid">Country should be India/Ind.</li>  
 
- Run the program and you will find then validation working as below 
 
 ![output]() 
 
 
 Hope you will enjoy displaying validation summary box.