Directive

vuenit.directive({ directiveName : directiveDefinition }, options)

The directive function allows you to test out directives.

In the background it creates a dummy component (a div element by default) with the directive applied as an attribute. The component instance is then returned so you can test the effects of the directive on the component (and its html content).

The directive method can also be aliased as mockDirective

The function takes two parameters: Directive and Options.

results matching ""

    No results matching ""