I've to show separate web application in my angular2 application. So i took <iframe>
and gave it a url. Its loading webpage properly.
Now i want to control some css of web application present inside <iframe>
from my angular2 application. Giving css directly in application will not work because <iframe>
act as separate independent window. Is there a way to add css file to the web application shown inside <iframe>
? I know we can do this with jquery but i need a way to do it through angular2.
Asked
Active
Viewed 304 times
0

Krishna
- 1,865
- 4
- 18
- 26
-
Angular2 doesn't have special support for iframe. Can you post the code how you would do it in jQuery to see what you try to accomplish? – Günter Zöchbauer Jun 15 '16 at 06:32
-
jquery code can be found in this link: http://stackoverflow.com/questions/624979/append-a-stylesheet-to-an-iframe-with-jquery – Krishna Jun 15 '16 at 06:35
-
You can do it in plain JS or jQuery. Angular doesn't have any built-in support for this. – Günter Zöchbauer Jun 15 '16 at 06:36