Search code examples
angularangular2-routing

routerLinkActive does not update Hyperlink, when route.params id is changed


That is my plunkr:

https://plnkr.co/edit/C9W0pHvy27J83m25YUOJ?p=preview

These are the steps to retrace the problem:

  1. Open project 'neverending'
  2. the url shows /projects/1/tests then
  3. The 'Tests link' is orange highlighted
  4. change the route in the url bar to /projects/2/tests
  5. the formerly highlighted 'Tests link' is now NOT orange anymore.

Why is the active class removed by angular?


Solution

  • Currently this does not work, see #13865