1

My goal is to show my components on multiple layout (using media queries - Small, Medium, Large) inside my style guide. The only way I can think of is using iframe since using HTML elements won't work with media queries.

How can I achieve this? I am also open to any suggestions (as in, non iframe approach).

ivanasetiawan
  • 879
  • 1
  • 10
  • 26
  • Are you looking for something like this https://stackoverflow.com/questions/2665980/filling-an-iframe-with-dynamic-content-from-javascript? – str Sep 05 '17 at 12:49
  • No. The solution is too simple for what I want. I want a good robust solution on Angular(4). Thanks tho! – ivanasetiawan Sep 05 '17 at 12:52
  • 1
    use bypasssafehtml function from domsanitize api from angualr and create an implementation of component. angular blocks iframe by default if i am not mistaken – Gary Sep 05 '17 at 12:55

0 Answers0