Events
A simple way for UI components to communicate with each other.
Emitting Events
<!--- Action --->
<cfscript>
function addPost() {
emit( "postAdded" );
}
</cfscript><!--- Templates --->
<cfoutput>
<div>
<button wire:click="$emit( 'postAdded' )">Add Post</button>
</div>
</cfoutput>
Passing Parameters
Scoping Events
emitUp
emitTo
emitSelf
Listeners
Dispatching Browser Events
Last updated