I found this gem angular universal: dynamic imports for browser only. However it was using isBrowser which appears to be no longer available in angular9. I am aware of isPlatformBrowser however that only appears to work in a component with dependency injection. Any way of doing this in angular9 inside a lazy loaded module?
Also should mention that using app.server.module & app.module to differentiate the two didn't appear to be a solution due to this module in particular being lazy loaded. I'm ultimately attempting to prerender my routes, including those that are lazy loaded.
Some primeng components are not compatible with SSR as they make calls to document and navigator. I'm after SEO.