Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
899 stars 360 forks source link

Angular Universal Issues with Angular v8 & 9 #938

Closed omardoma closed 3 years ago

omardoma commented 4 years ago

https://github.com/Gbuomprisco/ngx-chips/blob/d98c05f4ad6a06e2fef7dd15ba4d0945081b40c8/modules/components/tag-input/tag-input.ts#L47

This line causes SSR to fail, it should be typeof window !== 'undefined' && (window as any).DragEvent

Gbuomprisco commented 3 years ago

This should be done. Please use the template next time, it's there for a reason