Angular2: [routerLinkActive] = "['active']" is not updated on _router.navigate

I have an application with several routerLinks, I style them with [routerLinkActive] = "['active']". When I navigate by clicking one of the routerLinks, everything works fine. When I navigate with:

this._router.navigate ([thisUrl], {queryParams: queryParams});

routerLinkActive stops working. Does anyone know how to solve this problem?

I am using angular2 2.4.1

+4
source share

Source: https://habr.com/ru/post/1665014/


All Articles