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
Post a Comment