Skip to content

Commit d1b2ca1

Browse files
dotBitskazupon
authored andcommitted
added parent child v-bind use case to api docs (vuejs#836)
1 parent 2e7b166 commit d1b2ca1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/v2/api/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ if (version === 2) {
642642
An alternative to string templates allowing you to leverage the full programmatic power of JavaScript. The render function receives a `createElement` method as it's first argument used to create `VNode`s.
643643

644644
If the component is a functional component, the render function also receives an extra argument `context`, which provides access to contextual data since functional components are instance-less.
645-
645+
646646
<p class="tip">The `render` function has priority over the render function compiled from `template` option or in-DOM HTML template of the mounting element which is specified by the `el` option.</p>
647647

648648
- **See also:**
@@ -1772,6 +1772,9 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
17721772
<!-- prop binding. "prop" must be declared in my-component. -->
17731773
<my-component :prop="someThing"></my-component>
17741774
1775+
<!-- pass down parent props in common with a child component -->
1776+
<child-component v-bind.prop="$props"></child-component>
1777+
17751778
<!-- XLink -->
17761779
<svg><a :xlink:special="foo"></a></svg>
17771780
```

0 commit comments

Comments
 (0)