title: Inject Router using Injector.resolveAndCreate inside a class
body: <p>Is it possible to inject  Router using Injector.resolveAndCreate() ? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>import {ExceptionHandler, Injectable, Inject,Injector} from 'angular2/core';
  import {Router,ROUTER_PRIMARY_COMPONENT} from 'angular2/router';
  
  @Injectable()
  export class MyExceptionHandler implements ExceptionHandler{
  
      constructor(public router: Router) { }
      call(error, stackTrace = null, reason = null) {
          console.log("ERROR &gt;&gt; " + error);
          console.log("STACKTRACE &gt;&gt; " + stackTrace);
          console.log("REASON &gt;&gt; " + reason);
          let injector: any = Injector.resolveAndCreate([Router]);
          let router: Router = injector.get(Router);
          router.navigateByUrl('/error');       
          
      }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Getting EXCEPTION: Error during instantiation of Token RouterPrimaryComponent! (e -> Router -> RouteRegistry -> Token RouterPrimaryComponent).</p>