Get root component ElementRef or ComponentRef angular 2
<p>I'm building modal service in angular 2. I resolve most of the issues but i have problem placing the modal component in the body element in a nice angular way. I use <code>DynamicComponentLoader.loadNextToLocation</code> function to get the modal component and place it next to the <code>ElementRef</code> that is uset in <code>DynamicComponentLoader.loadNextToLocation</code> function. But when i don't want to place the created modal inside some component i have to manipulate DOM to insert the created modal. My question is can i use the root element in my application in the modal service? I want to achieve this when specific element isn't provided as container for the modal.</p>

<pre><code>var elementRef = DOM.query('app');
this.componentLoader.loadNextToLocation(ModalBackdrop, elementRef, backdropBindings)
</code></pre>