maxlength validator not working on input number angular code example Example: validation maxlength angular Validators.maxLength(11)