javascript - Angular 4 as iframe, call parent function -


i have issue project. have web page has use angular 4 app. must use iframe have app on page.

now, when want call parent function app (so iframe) when build app, have compilation error because angular app doesn't know parent's function. understand that, don't know if there other way call parent function angular 4 iframe.

here tried : parent.barcode();

i hope me issue!

thanks

alright i've found solution. don't have try communicate way, needed change input fields of parent window, iframe.

but didn't think jquery, , can edit parent window command : $("#your_id", window.parent.document). , can change value .val(), set css .css(), add attribute .attr(), etc.

i hope anyone!


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -