Using isRouteActive for determining if the route is active
<p>I am trying to use isRouteActive for determining if the particular route is active or not, but getting error,
<strong>angular2.dev.js:23730 TypeError: l_context.isRouteActive is not a function</strong></p>

<pre><code>&lt;li [class.active]="isRouteActive(router.generate(['/Users']))"&gt;&lt;a [routerLink]="['Users']"&gt;Users &lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>I have gone through the documentation, &amp; surprised why there are two different documents for Router class.</p>

<p><a href="https://angular.io/docs/ts/latest/api/router/index/Router-class.html" rel="nofollow">https://angular.io/docs/ts/latest/api/router/index/Router-class.html</a>
<a href="https://angular.io/docs/ts/latest/api/router/Router-class.html" rel="nofollow">https://angular.io/docs/ts/latest/api/router/Router-class.html</a></p>

<p>I am using 2.0.0-beta.12 version of Angular2.</p>

<p>It seems isRouteActive is not available in 2.0.0-beta.12. But I am unable  to figure out how to achieve the same.</p>