133. Styling Active Router Links

5:01 2 ลำโพง 2 บท 110 ส่วน

บท

  1. 0:02

    We of course added navigation to our page, but one issue is that whilst it does work fine, we get no visual indication of what the currently active route is. It would be nice if the selected tab would change and that of course is only a CSS…

  2. 3:12

    paths. Still, we don't want to have home being marked as active all the time. So to fix this, we can add some configuration to this router link active directive, and I will just split this up all over multiple lines to make this a bit easie…