title: passing id in (click) to another component or route
body: <p>I need to pass an id along with a click event to another component</p>
  <p>here is the component.ts</p>
  <pre><code> editData(rcid){
        this.router.navigate(['/Editdata']);
    }
  </code></pre>
  <p><strong>rcid</strong> is the id of the clicked item. And router&quot;/editdata&quot; is where the id is to be passed.</p>
  <p>I had checked with session and local storage but it need to refresh the page when coming with another  id</p>
  <p>please help me with this. I'm new to angular</p>