My application have a lot of modules and each module has its own routing class.
{
path: 'periodic-documents', data: {allowedRoles: ['11A06A', 'Admin']}, component: PeriodicDocumentsComponent
},
above is the example of a module routing.
So I need a way to pass data to "PeriodicDocumentsComponent" component from route definition at above. Data which I want to pass to PeriodicDocumentsComponent can be a class or a string.