You can interact with your Wires, calling Actions, setting Data Properties, and more, using cbwire.find from within your Wire Template. Once you have a reference to the Wire, you can interact with it using the methods below.
<script>document.addEventListener("livewire:load",function() {var thisWire =cbwire.find('#args._id#'); // args._id contains the id of our wirevar count =thisWire.count; // gets the value of a data property called 'count' thisWire.count =5; // updates the values of a data propertythisWire.increment(); // calls the increment action on our wirethisWire.addTask( 'someTask' ); // calls the addTask action and passes parameters thisWire.call( 'increment' ); // same as increment call above // On someEvent, console logthisWire.on( 'someEvent',function() {console.log('Got someEvent'); } ); thisWire.emit('someEvent','foo','bar'); // emits someEvent and pass parameters } );</script>