Skip to content

Commit 3d136b5

Browse files
committed
change vm.$ to vm.$refs due to #1292
1 parent 1a9b794 commit 3d136b5

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)