Get text from Popup Prompt


#1

Hi i can’t get text from popup prompt?

addDoctor()
{
let prompt = this.alertCtrl.create({
title: ‘Doctor’,
inputs: [
{
name: ‘title’,
placeholder: ’ Specialist’

    },
      {
      name: 'title',
      placeholder: ' Name'




    },
    {
      name: 'title',
      placeholder: 'Surname'




    },

    {
      name: 'title',
      placeholder: 'Phone Number'




    },

  ],
  buttons: [
    {
      text: 'CANCEL',
      handler: data => {
        console.log('Cancel clicked');
      }
    },
    {
      text: 'ADD',
      handler: data => {
        console.log('Saved clicked');

     
        this.store.dispatch(this.mdoktorActions.addDoctor(this.t_doctor));

      }
    }
  ]


});
prompt.present();

}


#3

Try this text: ‘ADD’,
handler: data => {
console.log(‘Saved clicked’);
console.log(data);
}