directive

This can either be a string, for a globally defined directive. Otherwise it should be an object containing name : definition object.

It is possible to supply more than one directive and you can mix definition objects and globally-defined directives. You can even include built-in directives like v-if.

vuenit.directive('global-directive');

vuenit.directive({
  'local-directive' : function(el, binding){}
});

vuenit.directive([
  'global-directive',
  'v-if',
  {
    'local-directive' : function(el, binding){}
  }
]);

results matching ""

    No results matching ""