Hi guys,
I want to disable input after input length =3.
and I did that but problem is i am getting this error below
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: ‘ng-untouched: true’. Current value: ‘ng-untouched: false’
here is my code:
in html:
<ion-input type="text" placeholder="Write minimum 3 digit" [(ngModel)]="myModel" (keyup)="call()" [disabled]="typeDisabled"></ion-input>
in Is
call() {
if (this.myModel == 3) {
this.typeDisabled = true;
}
}
please help how to resolve this
Thanks