Skip to content

Commit 36ce223

Browse files
authored
$ref in v-for will alway be an array (fix #843)
Previous text was inaccurate.
1 parent c26b321 commit 36ce223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ var parent = new Vue({ el: '#parent' })
10111011
var child = parent.$refs.profile
10121012
```
10131013

1014-
When `ref` is used together with `v-for`, the ref you get will be an array or an object containing the child components mirroring the data source.
1014+
When `ref` is used together with `v-for`, the ref you get will be an array containing the child components mirroring the data source.
10151015

10161016
<p class="tip">`$refs` are only populated after the component has been rendered, and it is not reactive. It is only meant as an escape hatch for direct child manipulation - you should avoid using `$refs` in templates or computed properties.</p>
10171017

0 commit comments

Comments
 (0)