maxlength validation on number field angular 6 code example Example: validation maxlength angular Validators.maxLength(11)