Skip to content

Commit

Permalink
fix class binding object-in-array example
Browse files Browse the repository at this point in the history
close #2886
  • Loading branch information
yyx990803 committed Jun 14, 2024
1 parent 43f0fb3 commit e56ec8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/essentials/class-and-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ This will always apply `errorClass`, but `activeClass` will only be applied when
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:

```vue-html
<div :class="[{ activeClass: isActive }, errorClass]"></div>
<div :class="[{ [activeClass]: isActive }, errorClass]"></div>
```

### With Components {#with-components}
Expand Down

0 comments on commit e56ec8c

Please sign in to comment.