How can I Disable a Ionic element in the page.html file if a variable matches a string

Advertisements I want to disable this element for a few data classes: <ion-item> <ion-label position="stacked">Url</ion-label> <ion-input type="text" value="{{data.url}}" [(ngModel)]="data.url" ></ion-input> </ion-item> I imagined it like this: <ion-item [disabled]= if(this.ch === ‘user’ | ‘todo’ )> <ion-label position="stacked">Url</ion-label> <ion-input type="text" value="{{data.url}}" [(ngModel)]="data.url" ></ion-input> </ion-item> or <ion-item [disabled]="*ngIf= this.ch === ‘user’ | ‘todo’"> <ion-label position="stacked">Url</ion-label> <ion-input type="text" value="{{data.url}}"… Read More How can I Disable a Ionic element in the page.html file if a variable matches a string