Skip to content

Commit 3918263

Browse files
committed
docs: tutorial: add verify to avoid empty content for newTodo (#2712)
1 parent 679f1f4 commit 3918263

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/tutorial/src/step-7/App/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form @submit.prevent="addTodo">
2-
<input v-model="newTodo">
2+
<input v-model="newTodo" required placeholder="new todo">
33
<button>할 일 추가</button>
44
</form>
55
<ul>

src/tutorial/src/step-8/App/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form @submit.prevent="addTodo">
2-
<input v-model="newTodo">
2+
<input v-model="newTodo" required placeholder="new todo">
33
<button>Add Todo</button>
44
</form>
55
<ul>

src/tutorial/src/step-8/_hint/App/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<form @submit.prevent="addTodo">
2-
<input v-model="newTodo">
2+
<input v-model="newTodo" required placeholder="new todo">
33
<button>Add Todo</button>
44
</form>
55
<ul>

0 commit comments

Comments
 (0)