Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since $refs does not exist and we are suppose to use selectors, I was hoping that I could do
this.$el.querySelector('form')
but this does not work.I would prefer to not use a custom ID or Class as this is a reusable scope that I am using on multiple sections.
Previously with Alpine I was just using
this.$refs.form
.I am not using mount and instead just using a sharable object across multiple v-scope elements and using defer and init on the cdn script.
So what is the best way to achieve this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions