Create a form in ionic2 alert and place a submit in the alert


#1

Hi

i’m new to ionic 2 .I want a alert for a form in ionic 2

let alrt =  this.alertCtrl.create({
        title: 'Welcome to our site',
        message:'This is our web page for about.....!',
        buttons:['Submit', 'close']
    });
    alrt.present();

i’m trying to place the form(username as input) in the alert but i have little confusion of how to call the function while i click on the submit , the alert box has to close and the entered username value has to display in the page Can anyone please help to resolve my issue by providing a example code.

Thanks in advance.