I'm trying to get route paramMap in my service but the subscribe returns null. But if i subscribe in the component returns the value.
why??
I have this code in the service
this.route.paramMap.subscribe(params => console.log(params.get('param')));
and my path is:
{path: 'home/:param', loadChildren: './components/home/home.module#HomeModule'}
EDIT
nice solution: Angular 2.0.2: ActivatedRoute is empty in a Service