10000 update readme.md · vueComponent/vue-ref@d7bf8b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7bf8b4

Browse files
committed
update readme.md
1 parent 67c9fcb commit d7bf8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ You can use the callback to get a reference like react.
55
$ npm install vue-ref --save
66
```
77

8-
```
8+
```js
99
import ref from 'vue-ref'
1010
Vue.use(ref)
1111
```
1212

13-
```
13+
```html
1414
<!-- vm.dom will be the DOM node -->
1515
<p v-ref="c => this.dom = c">hello</p>
1616

0 commit comments

Comments
 (0)
0