Open a modal who it's located in an iframe on Ionic with JQuery


#1

I use jquery to handle some functions with an iframe… But i have a question and i don’t know how solve it.

Can i bind a click into a function to fire a modal who is inside into an iframe? Don’t worry about X-domain


#2

If the iframe is positioned in a html file rendered by Angular (so has a .ts file linked to it), then you should be able to use the (click) event to fire a function in the ts file that uses de ModalController to open the modal.

Even though iframes and jqueyy may not go well with angular/ionic in all occasions

Just try it, I would say