In .html file
…
<ion-input name=“address” type=“text” [(ngModel)]=“address”>
…
<button ion-button full (click)=“changeMe()” >
…
in .ts file
changeMe(){
this.address=“abc”;
}
when the button is clicked then it shows no update to input field .
only when i click on input field after clicking on button then only input is filled.
what i should do to auto populate the input area when the button is clicked.
I am new to ionic , any help guys.
i have added <div>{{address}}</div> but even after that it does not display anything after clicking on the button .
Only when i click on the address field then it displays the abc text in that.