I am having problems with what looks to be the Angular router reloading the component in <router-outlet></router-outlet> and causing undesired results. Does anyone have any ideas on how to fix this?
Plunker link: https://plnkr.co/edit/yRCzbsxE0ftzqrDeRT69?p=preview
How can I change it so the variable isn't reinitialized when alternating between link 'one' and 'two'