this.documentIsAccessible = isPlatformBrowser(this.platformId)
no longer necessary for Angular 18?
#327
Unanswered
apappas1129
asked this question in
Q&A
Replies: 1 comment
-
So I tried it out and actually Domino doesn't have
Quick research and I found this comment from another thread. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per documentation
If that is the case, then accessing
this.document
during both SSR runtime and client runtime will seamlessly work, andthis.document.cookie
may be safe to be the singular way of getting cookies at this point.Refferring to these lines of code:
ngx-cookie-service/projects/ngx-cookie-service-ssr/src/lib/ssr-cookie.service.ts
Line 20 in d6c916b
ngx-cookie-service/projects/ngx-cookie-service-ssr/src/lib/ssr-cookie.service.ts
Line 86 in d6c916b
Tying this to the issue I opened, this may also mean that creating
REQUEST
andRESPONSE
providers in theserver.ts
will no longer be needed for Angular 18?Beta Was this translation helpful? Give feedback.
All reactions