Assume that I have an <a routerLink="/foo">
tag, where /foo
is routed to FooPageComponent
, which renders content into the <router-outlet />
of AppComponent
. If I Ctrl+Left Click on this link, /foo
will be opened in a second tab. Does this mean that it will be an independent, second instance of my single-page application?
I know the second page uses the same server, localStorage etc., so it's not completely independent. But will it have its own instances of global objects (like the router, singleton services etc.)? Will it also run the APP_INITIALIZER
code?
In general, is it good practice in case of single-page applications to let users open pages in new tabs, or is it better to stay in the same tab, and use for example popups instead of new tabs?