1
내가이 있습니다변경 메시지 이온 2
doAlert() {
let alert = this.alertCtrl.create({
title: 'My Popup',
message: this.updateStatus
});
alert.present()
}
this.updateStatus = 'Start';
this.doAlert();
setTimeout(() => {
this.updateStatus = 'Finish';
console.log('Done Timeout');
}, 1000);
경고는 아래 그림과 같이 시작 프로그램, 심지어 CONSOLE.LOG 트리거입니다.
나는이 메시지가 완료로 변경하는 방법을 트리거 할 수 있습니다?
동적 경고 내용을 포함 할 수 있는지 확실하지 않습니다. 대신 Modal을 사용하고 사용자 정의보기를 사용할 수 있습니다. – MorKadosh
'alert.setMessage ('Finish'); 시도 했습니까? –