You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/essentials/class-and-style.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,7 @@ Then add some classes when using it:
209
209
The rendered HTML will be:
210
210
211
211
```vue-html
212
-
<p class="foo bar baz boo">Hi</p>
212
+
<p class="foo bar baz boo">Hi!</p>
213
213
```
214
214
215
215
The same is true for class bindings:
@@ -221,7 +221,7 @@ The same is true for class bindings:
221
221
When `isActive` is truthy, the rendered HTML will be:
222
222
223
223
```vue-html
224
-
<p class="foo bar active">Hi</p>
224
+
<p class="foo bar active">Hi!</p>
225
225
```
226
226
227
227
If your component has multiple root elements, you would need to define which element will receive this class. You can do this using the `$attrs` component property:
0 commit comments