Skip to content

Blade parsing/usage - AlpineJS/Livewire entangle #41472

Answered by NiekNijland
mnabialek asked this question in General
Discussion options

You must be logged in to vote

I have had this issue before.

@entangle is already a blade directive, even if your IDE might not display it as such so no need for extra brackets or anything.

You should be able to just do:

<button type="button" x-data="{ on: @entangle($wireModel).defer }">test</button>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mnabialek
Comment options

Answer selected by mnabialek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants