I am trying to use isRouteActive for determining if the particular route is active or not, but getting error, angular2.dev.js:23730 TypeError: l_context.isRouteActive is not a function
<li [class.active]="isRouteActive(router.generate(['/Users']))"><a [routerLink]="['Users']">Users </a></li>
I have gone through the documentation, & surprised why there are two different documents for Router class.
https://angular.io/docs/ts/latest/api/router/index/Router-class.html https://angular.io/docs/ts/latest/api/router/Router-class.html
I am using 2.0.0-beta.12 version of Angular2.
It seems isRouteActive is not available in 2.0.0-beta.12. But I am unable to figure out how to achieve the same.