directives

{ directives : { myDirective : function(){} | {} | true } }

Allows you to stub or set the behaviour of specific directives.

The directives can either be a function, an object containing bind, update, etc. methods, or true which will just create an empty directive that has no effect on the component.

vuenit.component(c, {
  directives : {
    directiveA : function(){},
    directiveB : {
      bind : function(){},
      update : function(){}
    },
    directiveC : true
  }
});

vuenit.component(c, {
  directives : ['directiveA', 'directiveB', 'directiveC'] // equivalent of directiveA : true, directiveB : true, etc.
});

results matching ""

    No results matching ""