angular input maxlength only code example Example: validation maxlength angular Validators.maxLength(11)