Multiple $refs #1778
Answered
by
danddanddand
yudyananda
asked this question in
1. Help
Multiple $refs
#1778
-
is it possible to have multiple <button @click="$refs.foo.innerText='foo' $refs.bar.innerText='bar'">A button</button>
<span x-ref="foo"></span>
<span x-ref="bar"></span> |
Beta Was this translation helpful? Give feedback.
Answered by
danddanddand
Jul 13, 2021
Replies: 1 comment 2 replies
-
Yes. From your example cleaned up a bit: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
yudyananda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. From your example cleaned up a bit:
https://codepen.io/danddanddand/pen/zYwBRdG