Skip to content
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
2 changes: 1 addition & 1 deletion src/v2/guide/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ new Vue({
</script>
{% endraw %}

### Literal vs Dynamic
### Literal vs. Dynamic

A common mistake beginners tend to make is attempting to pass down a number using the literal syntax:

Expand Down
4 changes: 2 additions & 2 deletions src/v2/guide/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ new Vue({
{% raw %}
<div id="todo-list-example" class="demo">
<input
v-model="newTodoText" v
v-model="newTodoText"
v-on:keyup.enter="addNewTodo"
placeholder="Add a todo"
>
Expand Down Expand Up @@ -389,7 +389,7 @@ You can open the console and play with the previous examples' `items` array by c

### Replacing an Array

Mutation methods, as the name suggests, mutate the original array they are called on. In comparison, there are also non-mutating methods, e.g. `filter()`, `concat()` and `slice()`, which do not mutate the original Array but **always return a new array**. When working with non-mutating methods, you can just replace the old array with the new one:
Mutation methods, as the name suggests, mutate the original array they are called on. In comparison, there are also non-mutating methods, e.g. `filter()`, `concat()` and `slice()`, which do not mutate the original array but **always return a new array**. When working with non-mutating methods, you can just replace the old array with the new one:

``` js
example1.items = example1.items.filter(function (item) {
Expand Down