Skip to content

Commit d86f831

Browse files
authored
Merge pull request #4 from tapitapeh/gitlocalize-449
components-nuxt.md Open
2 parents 9665e14 + f4c5f15 commit d86f831

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

id/api/components-nuxt.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: 'API: '
3+
description: Menampilkan komponen halaman di dalam layout
4+
---
5+
6+
# Komponen <nuxt>
7+
8+
> Komponen ini hanya digunakan di dalam [layout](/guide/views#layouts) untuk menampilkan komponen halaman.
9+
10+
**Props**:
11+
12+
- nuxtChildKey: `string`
13+
- Prop ini diset ke `<router-view/>`, berguna untuk membuat transisi di dalam halaman yang dinamis dan route yang berbeda.
14+
- Default: `$route.fullPath`
15+
16+
Contoh (`layouts/default.vue`):
17+
18+
```html
19+
<template>
20+
<div>
21+
<div>My nav bar</div>
22+
<nuxt/>
23+
<div>My footer</div>
24+
</div>
25+
</template>
26+
```
27+
28+
Untuk melihat contoh, silakan lihat [contoh nested-routes](/examples/layouts).

0 commit comments

Comments
 (0)