{% emits %}
Attributes
| Parameter | Type | Required | Description |
|---|---|---|---|
event | string | ✓ | Bare event name this component emits (e.g. 'bookmark-created') |
Valid Parent Contexts
This tag is valid inside: {% component %}
Declares that the parent \{% component %\} emits the named event. The event must be declared in a domain \{% api %\} block. The compiler validates the reference against the global event name index.
Self-closing (/%\}) when no prose body is needed. Optional prose body describes when or why the event is emitted.
Component emitting an event
{% emits event="bookmark-added" /%}