Angular 2 routing in ES5?
<p>The <a href="https://angular.io/docs/js/latest/guide/cheatsheet.html" rel="nofollow">Angular 2 ES5 cheat sheet</a> says to do this:</p>

<pre><code>var MyComponent = ng.router.RouteConfig([
  { path: '/:myParam', component: MyComponent, as: 'MyCmp' },
  { path: '/staticPath', component: ..., as: ...},
  { path: '/*wildCardParam', component: ..., as: ...}
]).Class({
  constructor: function() {}
});
</code></pre>

<p>However, I can't figure out how to specify the <code>@Component</code> stuff on that class so that I can actually instantiate it. For example,</p>

<pre><code>ng.router.RouteConfig([...]).Component({})
</code></pre>

<p>throws an exception because the result of <code>.RouteConfig</code> doesn't have a <code>.Component</code> method. Similarly, the result of <code>.Component</code> doesn't have a <code>.RouteConfig</code> method. How do you get this set up?</p>