Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng2-odometer not working in angular 4 SSR #9

Open
binhudakhalid opened this issue Jan 2, 2020 · 0 comments
Open

ng2-odometer not working in angular 4 SSR #9

binhudakhalid opened this issue Jan 2, 2020 · 0 comments

Comments

@binhudakhalid
Copy link

binhudakhalid commented Jan 2, 2020

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 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant