0
"OK"ポップアップをクリックして変数を更新しようとしていますが、変数の更新方法がわかりません。コンソールでは、更新された値を表示しますが、更新された値は表示されません。ここでイオン2ポップアップハンドラ関数が変数を更新しない
this.barcodeScanner.scan().then((barcodeData) => {
let alert = this.alertCtrl.create({
title: 'Barcode scanned Successfully!',
subTitle: ''+barcodeData.text,
buttons: [{
text: 'OK',
handler:() => {
this.showForm = true;
this.memberVo["barcodeId"] = barcodeData.text;
}
}]
});
alert.present();
}, (err) => {
// An error occurred
console.log('barcode err--',err);
let alert = this.alertCtrl.create({
title: 'Barcode scan Failed!',
subTitle: ''+err,
buttons: ['OK']
});
alert.present();
});
this.showForm = true;
変数がビューに更新されていない/ HTML