Vue.elementDirective( id, [definition] )
-
Arguments:
{String} id
{Object} [definition]
-
Usage:
Register or retrieve a global element directive.
123456789// register
Vue.elementDirective(
'my-element'
, {
bind:
function
() {},
// element directives do not use `update`
unbind:
function
() {}
})
// getter, return the directive definition if registered
var
myDirective = Vue.elementDirective(
'my-element'
)
-
See also: Element Directives
Please login to continue.