Replies: 2 comments 3 replies
-
I was passing in the element as a parameter, given that we have $el on the expressions. |
Beta Was this translation helpful? Give feedback.
-
@stancl, @worldoptimizer I posted a similar question here: #2 |
Beta Was this translation helpful? Give feedback.
-
I'm trying to see if I can make petite-vue work with Livewire and the main issue I'm trying to solve is that I cannot access the element in a getter.
Alpine lets you add magic properties using callbacks like this:
Which is neat, because you get to work with the component. petite-vue only lets you do something like this:
I tried to see if the
this
state would be useful, but it doesn't seem to be.I'd also add that being able to access the full component state would be ideal, but at the same time magic properties can be used in
v-scope
/x-data
, i.e. before component initialization, which means that there might not be all the necessary state yet.But being able to access the element at the very least would open up a lot of use cases in my opinion.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions