In order to be SSR (server prerendering) compliant, could you make the "Window" usage optional ? With the new Angular 17 "standalone" (no module) architecture, I couldn't find a way to override the problematic components only in server mode, because of the "direct reference" to "window" object in your main module, as soon as I import it, the compiler just won't take it ...
So I finally thought I'd try editing your cool lib :) My solution is not the best or really efficient (and I don't want to make your code look less clean), so I thought I'd just post this PR to suggest the change, but let you do the real job, if you find some time, and if you don't mind .. :D
Hello,
In order to be SSR (server prerendering) compliant, could you make the "Window" usage optional ? With the new Angular 17 "standalone" (no module) architecture, I couldn't find a way to override the problematic components only in server mode, because of the "direct reference" to "window" object in your main module, as soon as I import it, the compiler just won't take it ...
So I finally thought I'd try editing your cool lib :) My solution is not the best or really efficient (and I don't want to make your code look less clean), so I thought I'd just post this PR to suggest the change, but let you do the real job, if you find some time, and if you don't mind .. :D
Thanks in advance.