title: Angular: Pass variables to window.open();
body: <p>I would like to open a new tab in Angular that won't have any functions at all. It is only a tab to display data for a user to print. My problem is that in the main app I do a call to get the data, but when I open the new tab, the variables don't hold the data from the main app. The variables are reset as if it is a new instance of the Angular app.</p>
  
  <p>I create a new tab by doing the following:</p>
  
  <pre><code>window.open('#/print-report');
  </code></pre>
  
  <p>Then in my app modules the above route opens the PrintReportComponent:</p>
  
  <pre><code>{ path: 'print-report', component: PrintReportComponent},
  </code></pre>
  
  <p>But in the new tab, every variable throughout my program is reset to its default value when the app starts up. How do I "save" or "pass" any variables to this new tab?</p>