Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Redefine MouseEvent for server side rendering with Angular Universal.#21

Open
10kc-awright wants to merge 1 commit into
drusso85:masterfrom
10kc-awright:pr-branch
Open

Redefine MouseEvent for server side rendering with Angular Universal.#21
10kc-awright wants to merge 1 commit into
drusso85:masterfrom
10kc-awright:pr-branch

Conversation

@10kc-awright

Copy link
Copy Markdown

Redefine MouseEvent for server side rendering with Angular Universal.

  • When AoT'ing and rendering on the server module, the DOM isn't present and fails to find MouseEvent, and causes any page to use this to not render. When running with the JiT or AoT'd code with a dom, this uses the correct event.
  • This trick was used by https://github.com/valor-software/ngx-bootstrap

@10kc-awright 10kc-awright changed the title Update scrollTo.ts to be AoT-able Redefine MouseEvent for server side rendering with Angular Universal. Jul 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants