ng2-scroll-to icon indicating copy to clipboard operation
ng2-scroll-to copied to clipboard

Redefine MouseEvent for server side rendering with Angular Universal.

Open 10kc-awright opened this issue 7 years ago • 0 comments

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 avatar Jul 21 '17 16:07 10kc-awright