Skip to content

Commit 6efc0ce

Browse files
Update custom-directive.md (#1058)
* Update custom-directive.md Optimization. I think it'll be better. * Update src/guide/custom-directive.md Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent 6672db1 commit 6efc0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/custom-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Our custom directive is now flexible enough to support a few different use cases
132132
<div id="dynamicexample">
133133
<h2>Scroll down the page</h2>
134134
<input type="range" min="0" max="500" v-model="pinPadding">
135-
<p v-pin:[direction]="pinPadding">Stick me {{ pinPadding + 'px' }} from the {{ direction }} of the page</p>
135+
<p v-pin:[direction]="pinPadding">Stick me {{ pinPadding + 'px' }} from the {{ direction || 'top' }} of the page</p>
136136
</div>
137137
```
138138

0 commit comments

Comments
 (0)