wire:replace
Basic Usage
<!-- wires/jsonViewer.bxm -->
<bx:output>
<form>
<!-- ... -->
<div wire:replace>
<!-- This custom element would have its own internal state -->
<json-viewer>#serializeJSON(someProperty)#</json-viewer>
</div>
<!-- ... -->
</form>
</bx:output><!-- wires/jsonViewer.cfm -->
<cfoutput>
<form>
<!-- ... -->
<div wire:replace>
<!-- This custom element would have its own internal state -->
<json-viewer>#serializeJSON(someProperty)#</json-viewer>
</div>
<!-- ... -->
</form>
</cfoutput>Replace Self
Last updated
Was this helpful?