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.
I create a new tab by doing the following:
window.open('#/print-report');
Then in my app modules the above route opens the PrintReportComponent:
{ path: 'print-report', component: PrintReportComponent},
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?
localStoragewhich holds values on a domain.