0
AlertController에서 입력을 얻으려고하고 있는데 Typescript에서 그 방법을 모르겠습니다.Ionic에서 AlertController의 입력 값을 얻는 방법
ionViewDidLoad(){
// Presenting popup
this.alert.create({
title:'Enter Details',
inputs:[{
//phNo:'Enter Mob No. E.g.919090998302',
//placeholder: 'pNo',
name:'username',
placeholder: 'username'
},{
name: 'number',
placeholder: 'PNo',
}],
buttons:[{
text: 'Continue',
handler: username =>{
if(typeof username!=null){
this.name = username,
this.phNo = number
}
}
}]
}).present();
나는 최대한 빨리 버튼을 클릭으로 두 번째 입력 값을 얻을 필요가 있지만, 나는이,이에이 Cannot find name "number"
을 말한다해야합니까 방법을 잘 모르겠어요.
도움, 감사합니다. –