length validation in angular code example Example 1: validation maxlength angular Validators.maxLength(11) Example 2: validation minlength angular Validators.minLength(9)