I use maxlength=100 when to count text. But when I enter in ion-textarea maxlength showing is not true.
Code html:
<ion-col>
<ion-textarea maxlength="100" (ionChange)="inputCommentChange()" [(ngModel)]="data" rows="5" type="text" class="size20">
</ion-textarea>
<small class="text-note size20 note-num">{{numberCharater}}/100</small>
</ion-col>
Code ts:
inputCommentChange() {
this.numberCharater = this.data.length;
}