Skip to content

Commit 5abb2fd

Browse files
committedJul 13, 2017
Added radio buttons
1 parent 3e152e0 commit 5abb2fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/App.vue

+9
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
<label :for="media">{{ media }}</label>
2929
</div>
3030
</div>
31+
32+
<div class="form-group">
33+
<label>Category</label>
34+
35+
<div v-for="category in formData.categories">
36+
<input type="radio" :id="category" :value="category" v-model="post.category">
37+
<label :for="category">{{ category }}</label>
38+
</div>
39+
</div>
3140
</form>
3241

3342
<hr>

0 commit comments

Comments
 (0)