BCJTI / ng2-cookies

Simple library to deal with cookies in Angular2
64 stars 31 forks source link

Issues on server side prerendering #39

Closed ste4net closed 7 years ago

ste4net commented 7 years ago

Hello, I am using ng2-cookie (check function) in angular2 guard. I use also server side prerendering (in asp. core + webpack) and the check function break the pre-rendering process because document is not defined. In my test environment i have just added a check to return false if document does not exist. And it seems to work correctly.

Bigous commented 7 years ago

@carcamano Could you merge and publish? Server side bugfix patch