I am trying to make an input text box with of 10 lines, but I can not make it and I have no idea what is going worng with it.
input type="text" style="width: 300px;" class="form-control" name="commentText" id="field_commentText" [(ngModel)]="comment.commentText" required minlength="2" maxlength="65000"
How can I fix it?
<div class="form-group">
<label class="form-control-label" jhiTranslate="jhipsterPress08App.comment.commentText" for="field_commentText">Comment Text</label>
<input type="text" style="width: 300px;" class="form-control" name="commentText" id="field_commentText"
[(ngModel)]="comment.commentText" required minlength="2" maxlength="65000"/>
<div [hidden]="!(editForm.controls.commentText?.dirty && editForm.controls.commentText?.invalid)">
<small class="form-text text-danger"
[hidden]="!editForm.controls.commentText?.errors?.required" jhiTranslate="entity.validation.required">
This field is required.
</small>
<small class="form-text text-danger"
[hidden]="!editForm.controls.commentText?.errors?.minlength" jhiTranslate="entity.validation.minlength" translateValues="{ min: 2 }">
This field is required to be at least 2 characters.
</small>
<small class="form-text text-danger"
[hidden]="!editForm.controls.commentText?.errors?.maxlength" jhiTranslate="entity.validation.maxlength" translateValues="{ max: 65000 }">
This field cannot be longer than 65000 characters.
</small>
</div>
Thanks