Laravel

Livewire $wire Object in JavaScript

January 16, 2026 1 min read 21 views

Access Livewire from JS:

Call Methods

Get Properties

let name = $wire.name;
let count = $wire.get('items.count');

Set Properties

$wire.set('name', 'John');
$wire.name = 'John';

Call with Return

let result = await $wire.calculate();
console.log(result);

From Alpine

Click me
Share this post:

Related Posts

Comments (0)

Please log in to leave a comment. Log in

No comments yet. Be the first to comment!