title: How can I subscribe for a route change and get a parameter?
body: <p>I've tried the sample on the official page but neither it works nor the other examples on other pages work me. There are no params neither of the router nor the route export. How can I subscribe and get the parameter change?
  Neither can I use the RouteParams, I got an exception there is no provider for it.
  Thank you!</p>
  
  <p>How am I able to do this with the current version of angular 2?</p>
  
  <pre><code>private sub: any;
  
      ngOnInit() {
        this.sub = this.route.params.subscribe(params =&gt; {
           let id = +params['id']; // (+) converts string 'id' to a number
           this.service.getHero(id).then(hero =&gt; this.hero = hero);
         });
      }
  </code></pre>
  
  <p>my code:</p>
  
  <pre><code>@RouteConfig([
      { path: '/:appleId/:bananaId/fruits/...', name: 'Fruits', component: FruitsComponent }
  ])
  </code></pre>
  
  <p>How Can I get the appleId or bananaId change in the FruitsComponent?
  The <code>this.route.params</code> does not exist :( What should I use instead?</p>