Join GitHub today
What problem does this feature solve?
Right now, we can override a class name for an active router link menu, but it doesn't solve a problem, if we have, for example, 2 different navbar's across our web application. I am using BEM (https://en.bem.info/methodology/), so let's say if i override an active class name to "navbar__link_active" in the first navbar (parent is "navbar" class), then i would get the same class name in my 2nd navbar, though i have a different parent class on it "footer-menu", so it should have "footer-menu__link_active" class ideally.
What does the proposed API look like?
There should be a setting in a router instance config, to set an active class for specific menus or something like that.