Runtime helper for applying directives to a vnode. Example usage:

const comp = resolveComponent('comp') const foo = resolveDirective('foo') const bar = resolveDirective('bar')

return withDirectives(h(comp), [ [foo, this.x], [bar, this.y] ])

interface DirectiveBinding {
    arg?: string;
    dir: ObjectDirective<any, V>;
    instance: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
    modifiers: DirectiveModifiers;
    oldValue: null | V;
    value: V;
}

Type Parameters

  • V = any

Properties

arg?: string
dir: ObjectDirective<any, V>
instance: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
modifiers: DirectiveModifiers
oldValue: null | V
value: V

Generated using TypeDoc