I'm learning Angular 2. I've created a component with the following template.
<h1>My component</h1>
<placeholder?></placeholder?>
Depending on the state in my component I want to display different child components instead of the placeholder tag. Is that possible? How?
For example: Let's say I have injected a service into my component. If this service returns 1 I want to show ComponentOne and for all other values from the service I want to display the OtherComponent.