Apply modifiers to event listeners
mainModifiers are appended to the event directive using dot notation to change the behavior of the listener. Modifiers apply to all listeners within that directive.
Common modifiers include:
.prevent: Callsevent.preventDefault()..stop: Callsevent.stopPropagation()..once: Registers the listener with{ once: true }..passive: Registers the listener with{ passive: true }..capture: Registers the listener with{ capture: true }..self: Triggers only ifevent.targetis the element itself..attach["element" | "window" | "document"]: Attaches the listener to a different target likewindowordocument..throttle[duration]: Limits execution frequency (default ~250ms)..debounce[duration]: Delays execution until inactivity (default ~250ms).