I have a structure like this
<!-- parent -->
<div>
<!-- child gets injected by router -->
<router-outlet></router-outlet>
</div>
I want to add a class to the parent div if the router produces a particular child component. I saw a similar question with presumably a correct answer but it does not use the router so it will not work for me.