here is my Angular2 app structure:
Here is part of my code. The following is the main module of the Angular2 app, that imports its routing rule
Not sure if I get the problem correctly, but here is a small code snippet which I used to generate routes dynamically:
app.component.ts:
constructor(private _router: Router) {
}
ngOnInit() {
...
this._router.config[0].children = myService.getRoutes();
this._router.resetConfig(this._router.config);
console.debug('Routes:', this._router.config);
...
}
It is not OOTB solution, but you can get information about current routes.