What kind of change does this PR introduce? (check one with "x")
[x] Bugfix :
Should be able to run angular project using server side rendering with ng-idle.
What is the current behavior? (You can also link to an open issue here)
Issue #77
ps: This PR (https://github.com/HackedByChinese/ng2-idle/pull/90) is working too.
Window and document is not defined in angular universal server side.
What is the new behavior?
Works with SSR.
Does this PR introduce a breaking change? (check one with "x")
Coverage increased (+0.005%) to 99.378% when pulling f6ffc7668cfe94ac7607394cdb80fd3875079f26 on sopretty:master into c9d7ce5a7f6b242bbbc099a85e541beab8e9c8cb on HackedByChinese:master.
What kind of change does this PR introduce? (check one with "x")
Should be able to run angular project using server side rendering with ng-idle.
What is the current behavior? (You can also link to an open issue here) Issue #77 ps: This PR (https://github.com/HackedByChinese/ng2-idle/pull/90) is working too. Window and document is not defined in angular universal server side.
What is the new behavior? Works with SSR.
Does this PR introduce a breaking change? (check one with "x")