I use a corporate framework that builds the navigation of the website based on the router config. So all routes configured in the AppRoutingModule
will be displayed in the navigation and its children will be showed on mouse over. The problem now is that, when I have a lazy loaded module, children
arent set on the route so I can't iterate over them.
I tried to get the router config of the lazy loaded feature module but that didn't work as router.config
returns the config of the AppRoutingModule
. Then I searched for a solution to execute code on postload (so after the module has been loaded) but didn't find any functionality provided by Angular.
Does anyone has a solution for this or an idea that might help?