title: Angular2 Primeng Data table selected row passing to other component using routers
body: <p>I have a primeng Data table and I want to pass selected row to other page through routers. Ex: I have a student data table and when I select one student row and click on submit button, It should display the details in StudentDetails Page. </p>
  
  <p>Here I can able to select the row and able to pass the data to student component. But unable to pass data to student details component.</p>
  
  <pre><code>export class Student {
  
  selectedRow:Student;// I can able to assign selected row here
  
  navigateStudentDetail(){
  
  this.router.navigate(['./studentdetail']);
  
  }
  </code></pre>
  
  <p>I can able to pass studentId using query param, But I want to pass my student object to studentdetails component. But unable to do it. </p>
  
  <p>Is there any easy way to achieve this? Please help me</p>