Skip to content

Commit c4b734d

Browse files
authored
docs: make pinPadding value change reflect in the template (#603)
* add `pinPadding` to template The *200px* in the paragraph is supposed to change depending on the value of `pinPadding`. * add 'px' to `pinPadding`
1 parent 1484fda commit c4b734d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/custom-directive.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Our custom directive is now flexible enough to support a few different use cases
140140
<div id="dynamicexample">
141141
<h2>Scroll down the page</h2>
142142
<input type="range" min="0" max="500" v-model="pinPadding">
143-
<p v-pin:[direction]="pinPadding">Stick me 200px from the {{ direction }} of the page</p>
143+
<p v-pin:[direction]="pinPadding">Stick me {{ pinPadding + 'px' }} from the {{ direction }} of the page</p>
144144
</div>
145145
```
146146

0 commit comments

Comments
 (0)