title: How to get params of url from service
body: <p>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. </p>
  
  <p>why??</p>
  
  <p>I have this code in the service</p>
  
  <pre><code>this.route.paramMap.subscribe(params =&gt; console.log(params.get('param')));
  </code></pre>
  
  <p>and my path is:</p>
  
  <pre><code>{path: 'home/:param', loadChildren: './components/home/home.module#HomeModule'}
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>nice solution:
  <a href="https://stackoverflow.com/questions/39977962/angular-2-0-2-activatedroute-is-empty-in-a-service">Angular 2.0.2: ActivatedRoute is empty in a Service</a></p>