-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
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
Throw error when using interpolation instead of JS expression for slot names #9038
Comments
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. |
…ession for slot names (vuejs#9038)
… as the "slot" property. (vuejs#9038)
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. |
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 thespan
, but it should also throw it for theslot
, as it has the exact same issue for itsname
attribute.What does the proposed API look like?
N/A
The text was updated successfully, but these errors were encountered: