Angular2 RC and dynamic routes
<p>We have a SPA app written in Angular which takes advantage of loading routes dynamically (as opposed to statically defined routes).</p>

<p>Over time, the number of these dynamically loaded UI components will grow and grow. For any given customer deployment, we will only be using a small subset of the possible components.  At runtime, the list of components will be data driven.  So my desire is to take that list of components and do the following:
-   define an application route for each component at runtime
-   lazy load that component</p>

<p>It’s a problem that has been solved in the Angular 1 version of our application (using ocLazyLoad package and angular’s $stateProvider)</p>

<p>It appears to be solvable in some of the later Beta releases of Angular2 (using AsyncRoutes and the router.config method - see technique <a href="http://blog.mgechev.com/2015/09/30/lazy-loading-components-routes-services-router-angular-2/" rel="nofollow">here</a>)</p>

<p>But in RC1 that AsyncRoutes and router.config method seems to be broken.</p>

<p>I can find very little with respect to guidance for loading components/routes asynchronously in the Angular2 release candidates.</p>

<p>Is there a canonical example for doing this with the latest candidates?</p>