Skip to content

Commit 5af1b7a

Browse files
dotBitschrisvfritz
authored andcommitted
removed v-bind.prop example since is wrong (vuejs#899)
* removed v-bind.prop example since is wrong * Fix example to pass down parent props in common with a child component
1 parent af9abfb commit 5af1b7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,9 +1785,9 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
17851785
17861786
<!-- prop binding. "prop" must be declared in my-component. -->
17871787
<my-component :prop="someThing"></my-component>
1788-
1788+
17891789
<!-- pass down parent props in common with a child component -->
1790-
<child-component v-bind.prop="$props"></child-component>
1790+
<child-component v-bind="$props"></child-component>
17911791
17921792
<!-- XLink -->
17931793
<svg><a :xlink:special="foo"></a></svg>

0 commit comments

Comments
 (0)