It seems to be basic problem, but i couldnt find simple solution.
I have one root component (something like faceted search container) and two different sub components which i want to use conditionally (depends on parameter in root component).
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 ?
I appreciate every answer. This is my first Angular2 project so sorry if this is too trivial for someone :) .
Greetings