title: Pass json data angular2 routing
body: <p>How to pass a json object from one component to another while routing. </p>
  
  <p>I guess it can be achieved using service but I like to know whether it can be done using routing itself. </p>
  
  <p>The data property like below which is available while defining the route can be helpful but I need to pass the data from component code, I mean not static data</p>
  
  <pre><code>  {
      path: 'heroes',
      component: HeroListComponent,
      data: { title: 'Heroes List' }
    }
  </code></pre>
  
  <p>Thanks </p>