I have a service for retrieving values from config files, and I want to use this service within routes const definition:
const routes: Routes = [ { path: 'myroute', component: SecuredComponent, canActivate: [MyGuard], data: { parameter: [**myService.getParameter()**] } } ];
Is it possible?
If so - how?
Thank you.
#angular