vue
vue copied to clipboard
Throw error when using interpolation instead of JS expression for slot names
What problem does this feature solve?
For this demo:
https://jsfiddle.net/2os9jken/
opening the console and running it throws the Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead.
error for the span
, but it should also throw it for the slot
, as it has the exact same issue for its name
attribute.
What does the proposed API look like?
N/A
Thanks for the proposal, the warning was meant for people coming from v1 where this was allowed. Personally, I don't think it is worth adding any more warnings regarding this as it will rarely help any user
Well, old references still exist, and it's not that obvious for new users. It surely confused me in #9037.
Hello ! Is this issue fixed or yet open to be worked on ?
Is this issue fixed or yet to be fixed?
can I work on this?
It is not supported to use interpolation {{}} to assign values to attributes, so use the v-bind command (or abbreviated ":") to specify attributes.