Componentize vue.js frontend
This commit is contained in:
parent
bb2026d182
commit
5feaee7b72
@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import Blurb from './components/Blurb.vue'
|
||||
|
||||
const blurb_data = {
|
||||
title: "Fart Man Comes To Town!",
|
||||
@ -20,9 +21,7 @@ function addBlurb() {
|
||||
|
||||
<main>
|
||||
<div class="wrapper" v-for="blurb in blurbs">
|
||||
<h1>{{ blurb.title }}</h1>
|
||||
<p>{{ blurb.blurb }}</p>
|
||||
<a href="#">Read more...</a>
|
||||
<Blurb :title="blurb.title" :blurb="blurb.blurb" link="#" />
|
||||
</div>
|
||||
<br />
|
||||
<button @click="addBlurb">Load more</button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user