File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ A common need for data binding is manipulating an element's class list and inlin
12
12
<VueSchoolLink href =" https://vueschool.io/lessons/vue-fundamentals-capi-dynamic-css-classes-with-vue " title =" Free Vue.js Dynamic CSS Classes Lesson " />
13
13
</div >
14
14
15
- ### Binding to Objects {#binding-to-objects} {#binding-to-objects}
15
+ ### Binding to Objects {#binding-to-objects}
16
16
17
17
We can pass an object to ` :class ` (short for ` v-bind:class ` ) to dynamically toggle classes:
18
18
@@ -136,7 +136,7 @@ computed: {
136
136
<div :class="classObject"></div>
137
137
```
138
138
139
- ### Binding to Arrays {#binding-to-arrays} {#binding-to-arrays}
139
+ ### Binding to Arrays {#binding-to-arrays}
140
140
141
141
We can bind ` :class ` to an array to apply a list of classes:
142
142
You can’t perform that action at this time.
0 commit comments