Skip to content

Commit c82151d

Browse files
committed
Added modifiers
1 parent 0971d9f commit c82151d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<form>
88
<div class="form-group">
99
<label for="title">Title</label>
10-
<input type="text" class="form-control" id="title" v-model="post.title">
10+
<input type="text" class="form-control" id="title" v-model.trim="post.title">
1111
</div>
1212

1313
<div class="form-group">
1414
<label for="content">Content</label>
15-
<textarea class="form-control" id="content" v-model="post.content" cols="30" rows="10"></textarea>
15+
<textarea class="form-control" id="content" v-model.lazy.trim="post.content" cols="30" rows="10"></textarea>
1616
</div>
1717

1818
<div class="form-group">

0 commit comments

Comments
 (0)