Angular 2 - conditional sub components for one root component
<p>It seems to be basic problem, but i couldnt find simple solution.</p>

<p>I have <strong>one root component</strong> (something like faceted search container) <strong>and two different sub components</strong> which i want to use <strong>conditionally</strong> (depends on parameter in root component).</p>

<p><a href="https://i.stack.imgur.com/fIWNq.jpg" rel="nofollow">Simple components diagram </a></p>

<p>These sub components are different types of search results for common root component. How to handle this situation  ? Some kind of multiple templates for one component or conditionally rendered directives of subcomponents ? </p>

<p>I appreciate every answer. This is my first Angular2 project so sorry if this is too trivial for someone :) .</p>

<p>Greetings</p>