Skip to content

Instantly share code, notes, and snippets.

Last active Feb 21, 2019
What would you like to do?
<div id="e3" style="width: 500px; max-width: 600px">
<v-toolbar color="pink">
<v-toolbar-title>Formulario de posts</v-toolbar-title>
<v-container fluid grid-list-lg>
<v-layout row wrap>
<v-flex xs12>
<v-card color="blue-grey darken-2" class="pa-4 white--text">
<v-card-title primary-title>
<div class="headline">Añade un nuevo post</div>
<v-form ref="postForm" lazy-validation>
label="Selecciona un post"
import Post from '@/database/models/Post';
export default {
name: 'PostsFormComponent',
data () {
return {
posts: [],
post: null,
mounted () {
this.posts = Post.all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment