ng2-scroll-to
ng2-scroll-to copied to clipboard
Redefine MouseEvent for server side rendering with Angular Universal.
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