please help me i am trying to make the input field as read only . tried with this code but not working
view:
<ion-input type="text" [readonly]="readonly"
name="branch_no" [(ngModel)]="user.BRANCH_ID" >
</ion-input>
ts file:
export class CustomerInfo{
readonly:boolean;
constructor(){
this.readonly=true
}
}