I new to ionic I was wondering how can I take the user input from the alert so I can store it for pass it to another function?
let prompt = this.alertCtrl.create({
title: 'code',
message: message,
inputs: [{
name: 'Code',
placeholder: 'code',
}],
buttons: [{
text: 'Cancel',
handler: data => {
console.log('Cancel clicked');
}
},{
text: 'ok',
handler: data => {
this.Coupun();
}
}