I have 2 components (DetailPage, ListPage) with below template :
<my-detailpage>
<my-header>{{ text }} </my-header>
<my-content>{{ content }} </my-content>
</my-detaipage>
<my-listpage>
<my-header>{{ text }} </my-header>
<my-content>{{ content }} </my-content>
</my-listpage>
I want to use same selector for header and content ,but the different template base on detail page or list page.
I tried to do this with using providers but not sure if it's the right path.
Any help also good to me, thanks a lot.