Skip to content

Commit 47065b8

Browse files
committed
update Vue.js references in list guide to just Vue
1 parent 6daec67 commit 47065b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/v2/guide/list.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ new Vue({
331331

332332
### `v-for` and `v-if`
333333

334-
In Vue.js template, `v-for` has a higher priority than `v-if` when they exists in the same node.
334+
In Vue template, `v-for` has a higher priority than `v-if` when they exists in the same node.
335335

336336
Suppose the example code bellow:
337337

@@ -352,7 +352,7 @@ new Vue({
352352
})
353353
```
354354

355-
Because `v-for` has higher priority than `v-if`, Vue.js will loop item in the list first. If item is true, it will output `item` value, else it will loop list2 and output the items of it.
355+
Because `v-for` has higher priority than `v-if`, Vue will loop item in the list first. If item is true, it will output `item` value, else it will loop list2 and output the items of it.
356356

357357
So the result of the above example code will be:
358358

@@ -411,9 +411,9 @@ new Vue({
411411
</script>
412412
{% endraw %}
413413

414-
## Key
414+
## `key`
415415

416-
When Vue.js is updating a list of elements rendered with `v-for`, it by default uses an "in-place patch" strategy. If the order of the data items has changed, instead of moving the DOM elements to match the order of the items, Vue will simply patch each element in-place and make sure it reflects what should be rendered at that particular index. This is similar to the behavior of `track-by="$index"` in Vue 1.x.
416+
When Vue is updating a list of elements rendered with `v-for`, it by default uses an "in-place patch" strategy. If the order of the data items has changed, instead of moving the DOM elements to match the order of the items, Vue will simply patch each element in-place and make sure it reflects what should be rendered at that particular index. This is similar to the behavior of `track-by="$index"` in Vue 1.x.
417417

418418
This default mode is efficient, but only suitable **when your list render output does not rely on child component state or temporary DOM state (e.g. form input values)**.
419419

0 commit comments

Comments
 (0)