Replies: 1 comment
-
Duplicate of #73? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say I want to join two lists ( fooList and barList ) in vue template
Currently we can only write
barList.find()
is inv-for
, socomputed
won't work here. Moving them into a new component works but that's a new topic.In JSX we can write
If we can create new variables in Vue template like what we can do in JSX, we can write
It's not only cleaner, but also more efficient.
Another example:
For now I would rather use $event.currentTarget.previousElementSibling than the standard ref stuff
Moved from Github duscussion: vuejs/core#5902 (comment)
Beta Was this translation helpful? Give feedback.
All reactions