Write event intent in markup
Use `(click)`, `(input)`, or any native event name where the user action happens.
flowview Events
The events compiler brings Angular's event-binding DX to plain Astro
markup. Write handlers in a <script data-flowview> block, use
(event)="handler()" in the template, and flowview wires up native browser listeners for you
— no bundler tricks, no framework runtime.
Click an action to see the compiled event handlers run.
.astro HTML + JS Use `(click)`, `(input)`, or any native event name where the user action happens.
flowview checks that every `(event)="handler()"` reference resolves to a function declared in your `<script data-flowview>` block — no manual wiring, no runtime surprises.
The browser receives data attributes plus a small runtime that calls `addEventListener` for you.