title: Angular — Route params in service returns null
body: <p>I'm desperately trying to get the route params from a service so when I access a section from the url, I can detect the section's id and load it in this service.</p>
  
  <p>The route path is 'sections/:section' with children. This gives a URL like this: /sections/2/home</p>
  
  <p>I tried to use the following:</p>
  
  <pre><code>this.route.paramMap.subscribe(params =&gt; {params.get('section');});
  </code></pre>
  
  <p>But it returns "null"...</p>
  
  <p>I also tried other options but it returned an empty string :/</p>
  
  <p>Any ideas? Thanks for your time! </p>