How to set style for a component which will depend on the active routes?

Hi. The second month we delve into Angular. Faced recently with a problem. The bottom line: in any application, the basic structure is:
a cap with several of ranting (link)
- router-outlet
- footer

The main route is /home. Also, there are 4 sections.
Need to a cap opening /home was transparent in all the other sections white.
I can not understand how to implement it. Tried directives, like that tried using routerState to do (is a hobby), decorators, in General, nothing. Tell me know how to implement it, at least approximately. Again, I'm new and maybe choose the right method, but wrong.
June 7th 19 at 14:26
0 answer

Find more questions by tags Angular