Skip to content

Commit

Permalink
Merge pull request #92 from jicjjang/ko/api/components-nuxt-child
Browse files Browse the repository at this point in the history
ko/api/components-nuxt-child
  • Loading branch information
DiyLecko authored Apr 23, 2017
2 parents 164c4dd + 61e0f2c commit ee630c6
Showing 1 changed file with 48 additions and 0 deletions.
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) 페이지를 참고해주세요.

0 comments on commit ee630c6

Please sign in to comment.