ngx-file-drop
ngx-file-drop copied to clipboard
Content NgTemplate disappears after @angular/ssr hydration
As soon as my angular app gets hydrated, my ng-content inside the ngxFileDrop disappears without any noticeable reason.
This is my implementation:
<ngx-file-drop
[multiple]="!!multiple"
[accept]="conf.acceptFiles || ''"
dropZoneClassName="ngx-file-drop"
browseBtnClassName="ngx-file-drop-btn"
contentClassName="ngx-file-drop-content"
(onFileLeave)="dragFileOverEnd()"
(onFileOver)="dragFileOverStart()"
(onFileDrop)="dragFileAccepted($event)"
>
<ng-template ngx-file-drop-content-tmp>
<ng-content />
</ng-template>
</ngx-file-drop>
Using ngxFileDrop 16.0.0 and Angular 17.14