Hi. I’m working on a new project in Ionic 2 and now I’m having a problem. I’ve created a modal and it works perfect when I use <button (click)=“openModal()”>Open! The thing is that my content is from remote server and I’ve added the (click) option inside my php file and it doesn’t work if I click on the image. I use innerHTML to show the content from json. I also created a pipe to sanitize the content (After I searched about this I found this and it works to show the (click) button in source. Until I’ve created the pipe the (click) button didn’t even appeared in source).
Now I have this in read.html
< div [innerHTML]=“entireArticle | keepHtml”>
And in my php file.
$article = array();
$article= ‘< div><img src=“image.jpg” (click)=“openModal()”>’;
So my content is showing with the images and all but if I click on the image nothing is happening. I’ve created another button in read.html with (click)= “openModal()” and it works. Why is not working when the content is binded? Thank you!