Skip to content

Commit

Permalink
docs: make pinPadding value change reflect in the template (#603)
Browse files Browse the repository at this point in the history
* add `pinPadding` to template

The *200px* in the paragraph is supposed to change depending on the value of `pinPadding`.

* add 'px' to `pinPadding`
  • Loading branch information
Timibadass committed Oct 7, 2020
1 parent 1484fda commit c4b734d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/custom-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Our custom directive is now flexible enough to support a few different use cases
<div id="dynamicexample">
<h2>Scroll down the page</h2>
<input type="range" min="0" max="500" v-model="pinPadding">
<p v-pin:[direction]="pinPadding">Stick me 200px from the {{ direction }} of the page</p>
<p v-pin:[direction]="pinPadding">Stick me {{ pinPadding + 'px' }} from the {{ direction }} of the page</p>
</div>
```

Expand Down

0 comments on commit c4b734d

Please sign in to comment.