Skip to content

Commit fbae532

Browse files
author
ntepluhina
committed
fix: fixed compilation scope name
1 parent 3de6a32 commit fbae532

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/guide/component-slots.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Or even other components:
5454

5555
If `<navigation-link>`'s template did **not** contain a `<slot>` element, any content provided between its opening and closing tag would be discarded.
5656

57-
## Compilation Scope
57+
## Render Scope
5858

5959
When you want to use data inside a slot, such as in:
6060

@@ -186,24 +186,7 @@ To provide content to named slots, we need to use the `v-slot` directive on a `<
186186

187187
Now everything inside the `<template>` elements will be passed to the corresponding slots.
188188

189-
```html
190-
<base-layout>
191-
<template v-slot:header>
192-
<h1>Here might be a page title</h1>
193-
</template>
194-
195-
<template v-slot:default>
196-
<p>A paragraph for the main content.</p>
197-
<p>And another one.</p>
198-
</template>
199-
200-
<template v-slot:footer>
201-
<p>Here's some contact info</p>
202-
</template>
203-
</base-layout>
204-
```
205-
206-
Either way, the rendered HTML will be:
189+
The rendered HTML will be:
207190

208191
```html
209192
<div class="container">

0 commit comments

Comments
 (0)