We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for
each
When users see <for(var x in xs)>, they think it's native JavaScript and try to do fancy ES6 stuff like destructuring.
<for(var x in xs)>
Here's an actual attempt:
<for(const [airport, { area, name, pos: { lat, lng } }] of Object.entries(geo.airports))>
I have two suggestions (not mutually-exclusive):
This would be the last nail in the "uncanny JavaScript-like tags" coffin.
The text was updated successfully, but these errors were encountered:
Or could be more vue like
for((key, value) in data)//object
And
for(item in data)//array
Thanks :)
Sorry, something went wrong.
We've switched up the for tag syntax keeping this in mind in #1238
No branches or pull requests
When users see
<for(var x in xs)>
, they think it's native JavaScript and try to do fancy ES6 stuff like destructuring.Here's an actual attempt:
I have two suggestions (not mutually-exclusive):
for
toeach
to avoid confusionfor
native JS code supportThis would be the last nail in the "uncanny JavaScript-like tags" coffin.
The text was updated successfully, but these errors were encountered: