File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/ja/9.workspace/1.todo-list/5.componentization-1 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,10 @@ app.vueに定義されたtodosにTodoList.vueからアクセスすることが
155
155
156
156
` props ` と ` emit ` を使用して親子間でデータのやり取りをできるようにしましょう:
157
157
158
- 2 . ` TodoList.vue ` で` defineProps ` を使用して親から` todos ` を受け取れるようにしましょう
159
- 3 . ` app.vue ` に` <TodoList /> ` を配置して、todosを渡してみましょう。
160
- 4 . ` TodoList.vue ` で` defineEmits ` を使用してアイコンのクリックイベントを親に伝えられるようにしましょう
161
- 5 . ` app.vue ` で` TodoList.vue ` から受け取ったイベントを利用して` updateDone ` を実行しましょう
158
+ 1 . ` TodoList.vue ` で` defineProps ` を使用して親から` todos ` を受け取れるようにしましょう
159
+ 2 . ` app.vue ` に` <TodoList /> ` を配置して、todosを渡してみましょう。
160
+ 3 . ` TodoList.vue ` で` defineEmits ` を使用してアイコンのクリックイベントを親に伝えられるようにしましょう
161
+ 4 . ` app.vue ` で` TodoList.vue ` から受け取ったイベントを利用して` updateDone ` を実行しましょう
162
162
163
163
参考実装:
164
164
You can’t perform that action at this time.
0 commit comments