This pen helps you validate a 10-digit mobile number(which is used in India) and email address using ng-pattern directive, you can edit the pattern string in JS file for customizing number of digit of contact number.
ValidationSee the Pen by DynamicSingh (@DynamicSingh) on CodePen.