Skip to content

2.0 docs-- missing "slot" option on render function's data object #450

Closed
@asselin

Description

@asselin

Reopening issue vuejs/vue#3841 against the vuejs.org repo per Evan.

Referring to this part of the doc: http://vuejs.org/guide/render-function.html#The-Data-Object-In-Depth

When writing a render function, if you want to pass something in a named slot to a component, you have to write something like this:

createElement(component, { }, 
  createElement('div', {
    slot: 'some-named-slot'
  }, [ <some content> ])
);

Currently, the documentation for createElement's data object doesn't mention the slot field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions