From 4a1bb1ff2bb2437a2a9537127d28a87ffe6dd8e7 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Tue, 20 Jun 2017 19:29:23 +0100 Subject: [PATCH 1/3] Clarify .prop modifier interacting with components --- src/v2/api/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index e6f85cb0e3..205de44e6c 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -1800,6 +1800,8 @@ All lifecycle hooks automatically have their `this` context bound to the instanc ``` `.camel` is not needed if you are using string templates, or compiling with `vue-loader`/`vueify`. + + If the tag is a component then `.prop` will set the property on the component's `$el`. - **See also:** - [Class and Style Bindings](../guide/class-and-style.html) From c3c7321695f6b92db553b68bb7f1caf5fcd3fd11 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Thu, 22 Jun 2017 07:28:29 +0100 Subject: [PATCH 2/3] Move .prop text into bullets --- src/v2/api/index.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index 205de44e6c..d9d715ea40 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -1742,7 +1742,8 @@ All lifecycle hooks automatically have their `this` context bound to the instanc - **Argument:** `attrOrProp (optional)` - **Modifiers:** - - `.prop` - Bind as a DOM property instead of an attribute. ([what's the difference?](http://stackoverflow.com/questions/6003819/properties-and-attributes-in-html#answer-6004028)) + - `.prop` - Bind as a DOM property instead of an attribute ([what's the difference?](http://stackoverflow.com/questions/6003819/properties-and-attributes-in-html#answer-6004028)). If the tag is a component then `.prop` will set the property on the component's `$el`. + - `.camel` - (2.1.0+) transform the kebab-case attribute name into camelCase. - `.sync` - (2.3.0+) a syntax sugar that expands into a `v-on` handler for updating the bound value. @@ -1801,8 +1802,6 @@ All lifecycle hooks automatically have their `this` context bound to the instanc `.camel` is not needed if you are using string templates, or compiling with `vue-loader`/`vueify`. - If the tag is a component then `.prop` will set the property on the component's `$el`. - - **See also:** - [Class and Style Bindings](../guide/class-and-style.html) - [Components - Component Props](../guide/components.html#Props) From e9da36525db70b1ab385cf718a05c3a797db092b Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Thu, 22 Jun 2017 07:29:44 +0100 Subject: [PATCH 3/3] Remove whitespace --- src/v2/api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index d9d715ea40..f38deb6b22 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -1801,7 +1801,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc ``` `.camel` is not needed if you are using string templates, or compiling with `vue-loader`/`vueify`. - + - **See also:** - [Class and Style Bindings](../guide/class-and-style.html) - [Components - Component Props](../guide/components.html#Props)