Actions
// File: ./wires/Counter.cfc
component extends="cbwire.model.Component"{
// Data property
variables.data = {
"counter": 0
};
// Action
function increment(){
variables.data.counter += 1;
}
}<div>
<button wire:click="increment">Increment Counter</button>
</div>Last updated
Was this helpful?