let alert = this.alertCtrl.create({
title: "abb",
message:"Ababa.",
buttons: [
{
text: 'no.',
handler: data => {
console.log("cancel")
}
},
{
text: 'yes',
handler: data => {
console.log(data);
this.zone.run(()=>{
this.mention2="sis"
this.startDetail="should be changed dynamically"
console.log(this.startDetail);
})
}
}
]
})
alert.present();
on html, I use <ion-searchbar [(ngModel)]=“startDetail” /> and
{{mention2}}
.once chosen yes on dialog, it should be changed instantly, but docent’ work.
it applied only when I click(touch) searchbar changes applied…