Skip to content

Defining a new directive similar to x-html results in error #4495

Closed Answered by SimoTod
vseryakov asked this question in 1. Help
Discussion options

You must be logged in to vote

It's const evaluate = evaluateLater(expression) instead of const evaluate = Alpine.evaluateLater(expression).
You want to use the helper passed into the directive callback which is already bound to the component/element otherwise the signature of Alpine.evaluateLater would require the first parameter to be the DOM element.

Replies: 1 comment 1 reply

Comment options

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

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