Home > Enterprise >  how to validate username when creating new user in angular?
how to validate username when creating new user in angular?

Time:06-23

We need to follow standard email practice while creating new user. User name Uppercase and lowercase letters in English (A-Z, a-z) Digits from 0 to 9 Special characters such as ! # $ % & ' * - / = ? ^ _ ` { | ( ) , : ; < > @ [ \ ] @ symbol must be there after @ symbol allow only Uppercase and lowercase letters in English (A-Z, a-z) Digits from 0 to 9 A hyphen (-) A period (.)

CodePudding user response:

You can use the buildin email validator https://angular.io/api/forms/EmailValidator

  • Related