vuejs/vue

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

オープン

#9,038 opened on 2018/11/07

 (8 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (33,833 件のフォーク)batch import
APIGood first issuefeature requestgood first issuehas PR

Repository metrics

Stars
 (209,764 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド