Skip to content

Commit 4b01613

Browse files
committed
Merge pull request #155 from oott123/patch-1
change vm.$ to vm.$refs due to #1292
2 parents 1a9b794 + 3d136b5 commit 4b01613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Despite the existence of props and events, sometimes you might still need to dir
461461
``` js
462462
var parent = new Vue({ el: '#parent' })
463463
// access child component instance
464-
var child = parent.$.profile
464+
var child = parent.$refs.profile
465465
```
466466

467467
When `v-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.

0 commit comments

Comments
 (0)