diff --git a/src/api/index.md b/src/api/index.md index 495c8d5291..3801d3b54b 100644 --- a/src/api/index.md +++ b/src/api/index.md @@ -902,42 +902,47 @@ type: api - **Details:** - A hash of VNode children of component that should resolve with slot. VNode children resolved with Single Slot are stored as the `default` key. VNode children resolve with Named Slot are stored as the key that specified with `slot` attribute. those VNode children are stored an Array. + Used to access content [distributed by slots](/guide/components.html#Content-Distribution-with-Slots). Each [named slot](/guide/components.html#Named-Slots) has its own corresponding property (e.g. the contents of `slot="foo"` will be found at `vm.$slots.foo`). The `default` property contains any nodes not included in a named slot. + + Accessing `vm.$slots` is most useful when writing a component with a [render function](/guide/render-function.html). - **Example:** ```html -
named slot content1
-named slot content2
Here's some page content, which will be included in vm.$slots.default, because it's not inside a named slot.
+ ++ Copyright 2016 Evan You +
+ +If I have some content down here, it will also be included in vm.$slots.default.
. +