Skip to content

Commit b39c8a7

Browse files
committed
expand comp to component in example
1 parent 822f480 commit b39c8a7

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
@@ -2123,8 +2123,8 @@ type: api
21232123
<!-- vm.$refs.p will be the DOM node -->
21242124
<p ref="p">hello</p>
21252125
2126-
<!-- vm.$refs.child will be the child comp instance -->
2127-
<child-comp ref="child"></child-comp>
2126+
<!-- vm.$refs.child will be the child component instance -->
2127+
<child-component ref="child"></child-component>
21282128
```
21292129

21302130
When used on elements/components with `v-for`, the registered reference will be an Array containing DOM nodes or component instances.

0 commit comments

Comments
 (0)