In my HTML template, I am encountering an issue with two common components.
When I click on the app-header link, its active class is applied. However, when I proceed to click on the side navbar's link, its active class also gets applied. I want to ensure that only one active class is applied at a time between these two child components. Can anyone suggest what changes can be made from the parent component in order to achieve this?
I have attempted using :host ::ng-deep in my SCSS, but I am struggling to make it conditional. Ideally, I would like these changes to take effect only when clicking on other components, without overriding the child components' CSS. Any insights or suggestions would be greatly appreciated.