set validation in angular 6 in min and max length code example Example: validation maxlength angular Validators.maxLength(11)