We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Here is a list rendering using a custom component and the v-once directive:
v-once
<li v-for="item of items" :key="item.model.id"> <item :model="item.model" v-once></item> </li>
JsFiddle using [email protected] Note that this does not work using [email protected], unless we remove the v-once directive.
Now let's add a conditional rendering:
<li v-for="item of items" :key="item.model.id"> <span v-if="item.model.id===1">BOB</span> <item :model="item.model" v-else v-once></item> </li>
JsFiddle using [email protected] JsFiddle using [email protected] This fails using [email protected] with the error:
Property or method "item" is not defined on the instance but referenced during render.
but works with 2.0.3 (2.0.3 failed when there was no v-else)
v-else
The text was updated successfully, but these errors were encountered:
Thanks for reporting that! In the meantime, a workaround would be to move the v-once inside the component
Sorry, something went wrong.
elseBlock should be walked through too in markStaticRoots func. I'll make a PR to fix it.
how to fix this problem???? any idea regarding it???
actually vue is reporting a very bad error in console because of this issue. and i dont know how to tackle this problem.
defcc
Successfully merging a pull request may close this issue.
Here is a list rendering using a custom component and the
v-once
directive:JsFiddle using [email protected]
Note that this does not work using [email protected], unless we remove the
v-once
directive.Now let's add a conditional rendering:
JsFiddle using [email protected]
JsFiddle using [email protected]
This fails using [email protected] with the error:
but works with 2.0.3 (2.0.3 failed when there was no
v-else
)The text was updated successfully, but these errors were encountered: