callHelpCenter(){
let alert = this.alertCtrl.create({
subTitle: 'Help Center',
message: "<p (click)='callEn()'>Phone number 12345</p>",
buttons: ['Dismiss']
)}
}
callEn(){
console.log('clicked');
}
As I have written above code, I want to handle the event on clicking of the message <p>
. Tag it's showing in DOM properly but not able to call the function (click)='callEn()'
. So how can I handle on click of message of the custom alert in ionic?