Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ko/api/components-nuxt-child #92

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions ko/api/components-nuxt-child.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: "API: <nuxt-child> 컴포넌트"
description: 현재 페이지를 보여줍니다
---

# The &lt;nuxt-child&gt; 컴포넌트

> 이 컴포넌트는 하위 컴포넌트를 [nested 경로](/guide/routing#nested-routes)에 보여주기 위해 사용됩니다.

예제:

```bash
-| pages/
---| parent/
------| child.vue
---| parent.vue
```

이 파일 트리는 다음과같이 생성됩니다:
```js
[
{
path: '/parent',
component: '~pages/parent.vue',
name: 'parent',
children: [
{
path: 'child',
component: '~pages/parent/child.vue',
name: 'parent-child'
}
]
}
]
```

`child.vue` 컴포넌트를 보여주기 위해, `pages/parent.vue`에 `<nuxt-child/>`넣어야 합니다:

```html
<template>
<div>
<h1>난 부모 View 입니다~</h1>
<nuxt-child/>
</div>
</template>
```

예제를 보려면 [nested-routes 예제](/examples/nested-routes) 페이지를 참고해주세요.