Angular 2 how to keep event from triggering digest loop/detection cycle?
We are implementing drag and drop functionality with Angular 2. I'm using the dragover event just to run the preventDefault() function. So that the drop event works as explained in this question . The dragover method is being handled by the onDragOver function in the component. <div draggable="true" (dragover)="onDragOver($event)"> ... In the component, this function prevents default behavior allowing for the dragged item to be dropped at this target. onDragOver(event) { event.preventDefault(); } This works as expected. The dragover event gets fired every few hundred milliseconds. But, every