We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8041a0 commit f13de37Copy full SHA for f13de37
src/App.vue
@@ -4,7 +4,7 @@
4
<div class="col-xs-12">
5
<h1>Add Blog Post</h1>
6
7
- <form>
+ <form @submit.prevent="isSubmitted = true">
8
<div class="form-group">
9
<label for="title">Title</label>
10
<input type="text" class="form-control" id="title" v-model.trim="post.title">
@@ -46,11 +46,13 @@
46
<option v-for="series in formData.series" :value="series">{{ series }}</option>
47
</select>
48
</div>
49
+
50
+ <input type="submit" class="btn btn-primary" value="Publish">
51
</form>
52
53
<hr>
54
- <table class="table table-striped">
55
+ <table class="table table-striped" v-if="isSubmitted">
56
<thead>
57
<tr>
58
<td class="col-xs-6"><strong>Field</strong></td>
@@ -97,6 +99,7 @@
97
99
export default {
98
100
data() {
101
return {
102
+ isSubmitted: false,
103
post: {
104
title: '',
105
content: '',
0 commit comments