From 3d136b5682aa517e2f5bcb1bf0d549abb2bb59cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E4=B8=89?= Date: Mon, 26 Oct 2015 17:50:13 +0800 Subject: [PATCH] change vm.$ to vm.$refs due to #1292 --- src/guide/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/components.md b/src/guide/components.md index f86303abdd..a25ccb1bb5 100644 --- a/src/guide/components.md +++ b/src/guide/components.md @@ -461,7 +461,7 @@ Despite the existence of props and events, sometimes you might still need to dir ``` js var parent = new Vue({ el: '#parent' }) // access child component instance -var child = parent.$.profile +var child = parent.$refs.profile ``` 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.