components

{ components : { myComponent : '<div/>' } }

Allows you to stub specific child components. The components themselves can either be component definitions, or just a string template.

vuenit.component(c, {
  components : {
    componentA : '<div>string template</div>',
    componentB : {
      template : '<div>component object</div>'
    },
    componentC : true
  }
});

vuenit.component(c, {
  components : ['componentA', 'componentB', 'componentC']
});

If you don't provide a string or object, it will use the following default template:

<div><slot></slot></div>

results matching ""

    No results matching ""