From 5eed52fa80f5aa4fee6adecd143e62cc4d8f1a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=A1=D0=BE=D0=BA=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Wed, 1 Mar 2017 14:12:45 +0300 Subject: [PATCH] list.md add note about key in v-for with components --- src/v2/guide/list.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/v2/guide/list.md b/src/v2/guide/list.md index b40d096217..cfd4ca21fe 100644 --- a/src/v2/guide/list.md +++ b/src/v2/guide/list.md @@ -218,9 +218,11 @@ new Vue({ el: '#range' }) You can directly use `v-for` on a custom component, like any normal element: ``` html - + ``` +> In 2.2.0+, when using `v-for` with a component, a [`key`](list.html#key) is now required. + However, this won't automatically pass any data to the component, because components have isolated scopes of their own. In order to pass the iterated data into the component, we should also use props: ``` html