Angular - How to remove elements from an iframe

时间:2018-03-25 19:18:31

标签: javascript html angular iframe angular5

I'm trying to remove the and tags of the iFrame in Angular 5. However everything i've found on stackoverflow or other sites doesn't work and i'd assume it's slightly different in angular. I can't figure out how to have this execute correctly and can't seem to using the iframe which i use document.getElementById("twitch-frame"); can't use that variable to get elements inside of the iframe or the like.

Any and all help that'd point to what the issue is/ how i can do this would be very greatly appreciated because it doesn't seem to make sense as to why I can't hit the elements using corrects class names or tag names.

Source of the website i'm working in ( In the Stream component html/ ts/ css )

0 个答案:

没有答案