Where do I fill a module specific sidemenu in angular material

In this project I have a few modules who all have a side menu filled with different menu items.
In my app-routing.module.ts I let them all use the same template.
This template contains a side-menu component.

Because every module has a separate side menu I want to fill this from my module with calling a service. Is this the right way? And where do I call this service, in my module-name.routing.ts?

Thanks in advance!

Source: Angular Material Quesions