Closed ilueckel closed 4 years ago
Fixed NgxDragAndDropDirective breaking SingleSiteRendering (SSR) in Angular universal. Using @HostListener breaks Angular universal
NgxDragAndDropDirective
@HostListener
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [Event]), ^ ReferenceError: Event is not defined
So I removed all Event-Types and @HostListeners, injected the platform ID and added event listening via Renderer2 when the platform is a browser.
Renderer2
Fixed
NgxDragAndDropDirective
breaking SingleSiteRendering (SSR) in Angular universal. Using@HostListener
breaks Angular universalSo I removed all Event-Types and
@HostListener
s, injected the platform ID and added event listening viaRenderer2
when the platform is a browser.