After upgrading Angular from 8 to 10, nsRouterLinkActive directive stopped adding CSS class on element. Seems like the reason is in this this.renderer.setStyle(should be this.renderer.addClass) call here
|
this.classes.forEach((c) => this.renderer.setStyle(this.element.nativeElement, c, isActiveLinks)); |