Hmm, That's an entirely different question.
As long as it's in the same origin, you can do something like:
<iframe #myFrame src=..>
In your component, grab the myFrame by using viewChild, and then:
if (myFrame.nativeElement) {
//shielded for non-browser enviroments
const iframe = myFrame.nativeElement
const iframeDocument = iframe.contentDocument;
// go ahead here
}
this works for normal iframes, I never tried it with svg though.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.