Skip to content

Commit

Permalink
Update ko (#58)
Browse files Browse the repository at this point in the history
* docs: add transition + key example (#2705)

* docs: add options-api for `Transitions with the Key` example (#2708)

* docs: recommend `petite-vue` for no build approaches (#2558)

* docs: improve the description of beforeCreate (#2707)

* docs: tutorial: add verify to avoid empty content for newTodo (#2712)

* docs: add missing comments to the Options API in the transition page (#2721)
  • Loading branch information
niceplugin authored Mar 3, 2024
1 parent 09cc024 commit f60c9e4
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 92 deletions.
8 changes: 4 additions & 4 deletions src/api/options-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@

- **์„ธ๋ถ€ ์‚ฌํ•ญ**:

์ธ์Šคํ„ด์Šค๊ฐ€ ์ดˆ๊ธฐํ™”๋œ ๋‹ค์Œ props๊ฐ€ ์ฒ˜๋ฆฌ๋œ ํ›„, `data()` ๋˜๋Š” `computed`์™€ ๊ฐ™์€ ๋‹ค๋ฅธ ์˜ต์…˜์„ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์ „์— ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.
์ธ์Šคํ„ด์Šค๊ฐ€ ์ดˆ๊ธฐํ™” ๋˜๊ณ  props๊ฐ€ ํ•ด๊ฒฐ๋  ๋•Œ ์ฆ‰์‹œ ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.

์ปดํฌ์ง€์…˜ API์˜ `setup()` ํ›…์€ ์˜ต์…˜ API์˜ ์–ด๋–ค ํ›…๋ณด๋‹ค ๋จผ์ € (`beforeCreate()` ํ›…๋ณด๋‹ค ๋นจ๋ฆฌ) ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.
๊ทธ๋Ÿฐ ๋‹ค์Œ props๋Š” ๋ฐ˜์‘ํ˜• ์†์„ฑ์œผ๋กœ ์ •์˜๋˜๊ณ  `data()` ๋˜๋Š” `computed`์™€ ๊ฐ™์€ ์ƒํƒœ๊ฐ€ ์„ค์ •๋ฉ๋‹ˆ๋‹ค.

Composition API์˜ `setup()` ํ›…์€ `beforeCreate()`์กฐ์ฐจ๋„ ๋ชจ๋“  Options API ํ›…(hook)๋ณด๋‹ค ๋จผ์ € ํ˜ธ์ถœ๋œ๋‹ค๋Š” ์ ์— ์ฃผ์˜ํ•˜์„ธ์š”.

## created {#created}

Expand Down Expand Up @@ -219,8 +221,6 @@

**์ด ํ›…์€ ๊ฐœ๋ฐœ ๋ชจ๋“œ ์ „์šฉ์ด๋ฉฐ ์„œ๋ฒ„ ์ธก ๋ Œ๋”๋ง ์ค‘์—๋Š” ํ˜ธ์ถœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.**

**This hook is development-mode-only and not called during server-side rendering.**

- **ํƒ€์ž…**:

```ts
Expand Down
Loading

0 comments on commit f60c9e4

Please sign in to comment.