Open dssantana opened 3 years ago
Thanks for your feedback. We don't have a project using onboarding and SSR. Can you provide the exact error please?
It's giving the exception:
Thanks!
@SDohle Actually we do the following in our module file: ` providers: [ BrowserDOMSelectorService, WindowRef, { provide: SeenSelectorsBaseService, useClass: LocalStorageSeenSelectorsService }, { provide: EnabledStatusBaseService, useClass: LocalStorageEnabledStatusService }, { provide: TranslatorBaseService, useClass: BuildInTranslatorService }
]`
Is there a way to allow users to override this configuration? because I had a pluggable storageprovider planned. as you can see
Because of the DI hirachy it should be possible to just provide another implementation at application level (in app.module.ts) to override the inject inside the module? @miller45
The exception is raised when using SSR. is it possible to add the condition of if (isPlatformBrowser(this.platformId)) { //use localStorage }
Thanks!
Diego