Looking for a solution on how to close a tab within an Angular session that was opened from somewhere else in the same session.
For instance:
In Component A
this.window = this.windowToken.open('Some URL', 'Some Tab Name', 'Some Tab Params');
In Some RouteGuard
// Get reference to this.window object
this.window.close()
I attempted to store this data locally or in sessionStorage, but saving Window objects there seems not possible:
localStorage.setItem('Window', this.window); -- this results in an error ('expects (string, string)')
What would be the recommended approach to achieve this?