Skip to content

Commit 42348d2

Browse files
themelerphanan
authored andcommitted
Unify examples HTML formatting (#1894)
* Unify examples HTML formatting * Unify examples HTML formatting
1 parent a28399e commit 42348d2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ The above syntax means the presence of the `active` class will be determined by
2121
You can have multiple classes toggled by having more fields in the object. In addition, the `v-bind:class` directive can also co-exist with the plain `class` attribute. So given the following template:
2222

2323
``` html
24-
<div class="static"
25-
v-bind:class="{ active: isActive, 'text-danger': hasError }">
26-
</div>
24+
<div
25+
class="static"
26+
v-bind:class="{ active: isActive, 'text-danger': hasError }"
27+
></div>
2728
```
2829

2930
And the following data:

src/v2/guide/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ Now we can pass the todo into each repeated component using `v-bind`:
323323
<todo-item
324324
v-for="item in groceryList"
325325
v-bind:todo="item"
326-
v-bind:key="item.id">
327-
</todo-item>
326+
v-bind:key="item.id"
327+
></todo-item>
328328
</ol>
329329
</div>
330330
```

0 commit comments

Comments
 (0)