Skip to content

Commit 3e08b75

Browse files
committed
:disabled example
Can we add :disabled example to guide? I have searched this several times from docs and later discovered that it was supposed to be solved like this...
1 parent c2e4bd9 commit 3e08b75

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/guide/syntax.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,17 @@ The `v-` prefix serves as a visual cue for identifying Vue-specific attributes i
148148

149149
<!-- shorthand -->
150150
<a :href="url"></a>
151+
152+
or
153+
154+
<!-- full syntax -->
155+
<button v-bind:disabled="someDynamicCondition">Button</button>
156+
157+
<!-- shorthand -->
158+
<button :disabled="someDynamicCondition">Button</button>
151159
```
152160

161+
153162
### `v-on` Shorthand
154163

155164
``` html

0 commit comments

Comments
 (0)