angular 7 max length input code example Example: validation maxlength angular Validators.maxLength(11)