Skip to content

Commit aaa22ab

Browse files
kazuponchrisvfritz
authored andcommitted
improve render function section at guide (#473)
* improve render function section at guide * Small rewording of directives example
1 parent 598182e commit aaa22ab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/guide/render-function.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special
160160
nativeOn: {
161161
click: this.nativeClickHandler
162162
},
163+
// Custom directives. Note that the binding's
164+
// oldValue cannot be set, as Vue keeps track
165+
// of it for you.
166+
directives: [
167+
{
168+
name: 'my-custom-directive',
169+
value: '2'
170+
expression: '1 + 1',
171+
arg: 'foo',
172+
modifiers: {
173+
bar: true
174+
}
175+
}
176+
],
163177
// The name of a slot if the child of a component
164178
slot: 'name-of-slot'
165179
// Other special top-level properties

0 commit comments

Comments
 (0)