Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

vBindSameNameShortHand

Control whether Vue attribute should be written in short-hand form or not if attribute name and value are same. If this option is unset, attribute won’t be changed.

Available since v0.3.0.

Default value is null.

Example for null

Input:

<MyComponent :value /> <MyComponent :value="value" />

Output:

<MyComponent :value /> <MyComponent :value="value" />

Example for true

Input:

<MyComponent :value /> <MyComponent :value="value" />

Output:

<MyComponent :value /> <MyComponent :value />

Example for false

Input:

<MyComponent :value /> <MyComponent :value="value" />

Output:

<MyComponent :value="value" /> <MyComponent :value="value" />