Skip to content

Commit d01c5b3

Browse files
authored
Use the correct class variable based on the context (#2765)
1 parent b1f618a commit d01c5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/essentials/class-and-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ This will always apply `errorClass`, but `activeClass` will only be applied when
189189
However, this can be a bit verbose if you have multiple conditional classes. That's why it's also possible to use the object syntax inside the array syntax:
190190

191191
```vue-html
192-
<div :class="[{ active: isActive }, errorClass]"></div>
192+
<div :class="[{ activeClass: isActive }, errorClass]"></div>
193193
```
194194

195195
### With Components {#with-components}

0 commit comments

Comments
 (0)