title: How to use RouteData in Angular2 Beta?
body: <p>I'm facing problems when I try to use <code>RouteData</code> in Angular2 Beta using TypeScript.</p>
  
  <p>I inject it in the constructor and import it properly</p>
  
  <pre><code>import {RouteConfig, Router, RouteData} from 'angular2/router';
  
  export class App {
      constructor(public router: Router, public data: RouteData) {
          // router works - routedata not
      }
  }
  </code></pre>
  
  <p>I'm getting <code>No provider for RouteData! (App -&gt; RouteData)</code>.</p>
  
  <p>If I include it into the component annotation like this</p>
  
  <pre><code>@Component({
    //..
    providers: [RouteData]
  })
  </code></pre>
  
  <p>I get this error: <code>Cannot resolve all parameters for RouteData(?). Make sure they all have valid type or annotations.</code></p>