Skip to content

Unify examples HTML formatting #1894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/v2/guide/class-and-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ The above syntax means the presence of the `active` class will be determined by
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:

``` html
<div class="static"
v-bind:class="{ active: isActive, 'text-danger': hasError }">
</div>
<div
class="static"
v-bind:class="{ active: isActive, 'text-danger': hasError }"
></div>
```

And the following data:
Expand Down
4 changes: 2 additions & 2 deletions src/v2/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ Now we can pass the todo into each repeated component using `v-bind`:
<todo-item
v-for="item in groceryList"
v-bind:todo="item"
v-bind:key="item.id">
</todo-item>
v-bind:key="item.id"
></todo-item>
</ol>
</div>
```
Expand Down