How I can disable or enable a ion-select control programmatically?
I’ have this piece of code in my html.
> <ion-select [(ngModel)]=“myvalue” cancelText=“Cancel” okText=“Okay!” disabled=true
> <ion-option *ngFor=“let obj of arrayobj” [value]=“obj.id”>{{obj.name}}
> </ion-select>
This work, but how I can bind “disabled” attribute and check its value from .ts file?
Based to another value I’d like to enable/disable the combobox.
I tried [disabled] =“myBooleanInTs” , where myBooleanInTs is a boolean value defined in my .ts page,but it doesn’t work.