<div id="drop-area" (dragover)="preventDefaults($event)" (drop)="handleDrop($event)" (ngClass)="highlight">
...
</div>
preventDefaults(e){
e.preventDefault();
e.stopPropagation();
}
handleDrop(e){
preventDefaults(e);
alert(e.originalEvent.dataTransfer.files);
}