title: Angular pass data without navigate
body: <p>I am passing some data through rounter.navigate. and then the data is using as parameter for api. But i want to know is it possible to pass data without navigating. Because i have 2 option in the dashboard. Claim status and employes. I need to pass data in both. In claim status, I can navigate because after login I need to show the home screen. But for the Employee tab what can I do?</p>
  
  <pre><code>  if(this.loginForm.value.email == 'samad' &amp;&amp; this.loginForm.value.password == 'admin'){
      console.log(`found corresponding user.`);
    this.router.navigate(['/dashboard/home', {company_id: '659' , policy: '' }]);
    }
  </code></pre>
  
  <p>this is code of navigating some data to home. But I need to share it to employe component as well. Thanks </p>