Say I have an Angular2 component <my-button> and I want to give  an input for options to render in a dropdown menu shown when the button is clicked. I have the menu component as <my-menu> and it renders conditionally in the template of <my-button> if there are options passed in.
Maybe I can just absolutely position <my-menu> within <my-button> to achieve the desired positioning. But maybe I can't because I have overflow:hidden on a containing element and that would clip <my-menu>. So instead I need to render <my-menu> in <body> and position it absolutely to <my-button>.
Is there a way to render <my-menu> to <body> even though it is placed inside the template for <my-button> instead?
Thanks!
 
     
     
     
     
    