I simply want to show a navigation menu like the following in my app:
<ul>
<li><a href="#/section1">Section 1</a></li>
<li class="active"><a href="#/section2">Section 2</a></li>
<li><a href="#/section3">Section 3</a></li>
</ul>
Here, clicking section 1, section 2, or section 3 will each trigger a route change. Currently the <li> for section 2 has the class active which means its the currently active route. I simply want to move this class around, so e.g if Section 3 is clicked, I want the li for section 3 to have the active class.
What's the best way to achieve this?