Events & Listeners
You can emit events from both your Wires and JavaScript. Superb!
Emitting Events
Actions
function someAction() {
emit( "taskAdded" );
}function someAction() {
emit( "taskAdded", [
"some task",
now()
] );
}Templates
JavaScript
Listeners
JavaScript
Last updated
Was this helpful?