There is a great blog post that shows how this library can be used together with server side rendering:
https://medium.com/lankapura/angular-server-side-rendering-for-authenticated-users-a021627fd9d3
The sample for this can be found here:
https://github.com/lankaapura/Angular-AspNetCore-Idsvr