use angular-ui-router's ui-sref-active directive https://github.com/angular-ui/ui-router/wiki/Quick-Reference#statename
<ul>_x000D_
<li ui-sref-active="active" class="item">_x000D_
<a href ui-sref="app.user({user: 'bilbobaggins'})">@bilbobaggins</a>_x000D_
</li>_x000D_
<!-- ... -->_x000D_
</ul>
_x000D_