vuejs/vue

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

Offen

#9.038 geöffnet am 07.11.2018

 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (33.833 Forks)batch import
APIGood first issuefeature requestgood first issuehas PR

Repository-Metriken

Stars
 (209.764 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide