The title might be a little misleading, but it is somewhat accurate.
I have three components. There is one parent component (View) and two child components (Accordion and Panel). The two child components are peers of one another. However, I want Panel to display inside of Accordion without having to inject Panel inside of Accordion's directives property. The reason I want to avoid this is because not every Accordion in the application will have a Panel. I thought that I achieved this awhile back when Angular2 was still in beta, but forgot how. I'm using RC.4.
In theory, this would be an ideal implementation:
view.component.html
<accordion title="View">
<panel></panel>
</accordion>
view.component.ts
...
@Component({
...
directives: [
Accordion,
Panel
]
})
...
Right now Accordion is rendering, but Panel is not. I can Panel to render separately. No errors are being thrown in the browser's console.
The components are very, very simple right now, so there is not much code to show.