Strange typing for v-for #8128
-
Strange problem. I have the following SFC component (simplified):
It fails at runtime for Intellisense said The only workaround I found is to add the following line after the class instantiation:
and using this Why? Seems the point in v-for confuses the compiler. What I'm missing? I never put a true value in the array. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has nothing to do with v-for, it has to do with the unwrapping in template, vue doc has already given the answer. |
Beta Was this translation helpful? Give feedback.
This has nothing to do with v-for, it has to do with the unwrapping in template, vue doc has already given the answer.
simple demo