I'm trying to develop with a complete mean stack (mean.js). I'm learning so maybe this question is a basic one. I spent so many days reading about different routing types in my frontend (angularjs). I found differences between ng-route and ui-router, the last one is a 3rd party module and has some clear advantages. I read in internet that if I use "ui-sref" I get a generated html for my state and an "href" tag. I understand this, but I searched a lot and I didn't find anything about "ui-route" what is used for?
I installed the official article example provided in meanjs http://meanjs.org/ and I have this that I cant understand.
<ul class="nav navbar-nav navbar-right" data-ng-hide="authentication.user">
<li ui-route="/signup" ng-class="{active: $uiRoute}">
<a href="/#!/signup">Sign Up</a>
</li>
<li class="divider-vertical"></li>
<li ui-route="/signin" ng-class="{active: $uiRoute}">
<a href="/#!/signin">Sign In</a>
</li>
</ul>
What is ui-route in combination with ng-class for? Is always necessary that
Thank you