You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/api/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1621,7 +1621,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
1621
1621
`ref` is used to register a reference to an element or a child component. The reference will be registered under the parent component's `$refs` object. If used on a plain DOM element, the reference will be that element; if used on a child component, the reference will be component instance:
1622
1622
1623
1623
```html
1624
-
<!-- vm.$refs.p will the DOM node -->
1624
+
<!-- vm.$refs.p will be the DOM node -->
1625
1625
<pref="p">hello</p>
1626
1626
1627
1627
<!-- vm.$refs.child will be the child comp instance -->
0 commit comments