ng2-odometer not working in angular 4 SSR
binhudakhalid opened this issue · 0 comments
binhudakhalid commented
Note: for support questions, please use one of these channels:
-
I'm submitting a ...
[ *] bug report
[ ] feature request
[ ] question about the decisions made in the repository -
Do you want to request a feature or report a bug?
Want to report a bug -
What is the current behavior?
ReferenceError: document is not defined in angular 4 SSR.
- If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
To reproduce:
git clone https://github.com/fulls1z3/universal
checkout to tag v1.3.0
add ng2-odometer in any component
npm run build:universal-prod
npm run serve
then you will get the error.
-
What is the expected behavior?
-
What is the motivation / use case for changing the behavior?
-
Please tell us about your environment:
- Angular version: 4.1
- Browser: [all | Chrome XX ]