vue icon indicating copy to clipboard operation
vue copied to clipboard

Throw error when using interpolation instead of JS expression for slot names

Open revolter opened this issue 5 years ago • 6 comments

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

revolter avatar Nov 07 '18 10:11 revolter

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

posva avatar Nov 07 '18 18:11 posva

Well, old references still exist, and it's not that obvious for new users. It surely confused me in #9037.

revolter avatar Nov 07 '18 18:11 revolter

Hello ! Is this issue fixed or yet open to be worked on ?

prabhatmishra33 avatar Oct 05 '21 16:10 prabhatmishra33

Is this issue fixed or yet to be fixed?

prathameshpcodes avatar Feb 26 '22 16:02 prathameshpcodes

can I work on this?

IhsenBen avatar Jan 10 '23 18:01 IhsenBen

It is not supported to use interpolation {{}} to assign values to attributes, so use the v-bind command (or abbreviated ":") to specify attributes.

DaZuiZui avatar Jan 22 '23 15:01 DaZuiZui