Getting Router config for lazy loaded module in Angular 2 Router
<p>How to get Router <code>config</code> for lazy loaded module routes in Angular 2 Router?</p>

<p>When I log config on router object, only available routes from the module which has already been loaded are logged,</p>

<pre><code> export class AppComponent {
   constructor(private router: Router){
     console.log(router.config);
   } 
 }
</code></pre>

<p><strong>router config</strong></p>

<p><a href="https://i.stack.imgur.com/niWsk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/niWsk.png" alt="enter image description here"></a></p>

<p>I understand since routes inside Lazy loaded modules are resolved at runtime, hence the config are not available. But it restricts us to get configuration data.</p>

<p>Is there a way in which we may get Route data from within the lazy loaded module without loading the module? Or define all routes in start and load the modules lazily?</p>

<p><a href="http://plnkr.co/edit/fp2MmASTwE03gn6acf0p?p=preview" rel="noreferrer">Plunker</a></p>

<p>Thanks in advance!!</p>