Angular 2.0.2: ActivatedRoute is empty in a Service
<p>I want to use ActivatedRoute to get route params in a service like I would do in a Component.
However, when I inject the ActivatedRoute object in a Service it contains an empty params variable</p>

<p>I've created a plunker that reproduces the behaviour:
<a href="http://plnkr.co/edit/sckmDYnpIlZUbqqB3gli" rel="noreferrer">http://plnkr.co/edit/sckmDYnpIlZUbqqB3gli</a></p>

<p>Note that the intention is to use the parameter in the service and not in the component, the way the plunker is set up is purely to demonstrate the issue.</p>

<p>Component (<code>test</code> is retrieved):</p>

<pre class="lang-ts prettyprint-override"><code>export class Component implements OnInit {
  result: string;

  constructor(private route: ActivatedRoute) {
  }

  ngOnInit() {
    this.route.params.subscribe(params =&gt; {
      this.result = params['test'];
    });
  }
}
</code></pre>

<p>Service (<code>test</code> is <strong>not</strong> retrieved): </p>

<pre class="lang-ts prettyprint-override"><code>export class Service {
  result: string;

  constructor(private route: ActivatedRoute) {
    this.getData();
  }

  getData() {
    this.route.params.subscribe(params =&gt; {
      this.result = params['test'];
    });
  }
}
</code></pre>