Skip to main content

Part 1 / Events / DOM events

今までざっと見てきたように、on: ディレクティブを使用して要素の任意のイベントをリスニングできます。

<div on:mousemove={handleMousemove}>
	The mouse position is {m.x} x {m.y}
</div>

Next: Inline handlers

initialising