From e9468a9a09a33efa2ed6c5bdc4fc3eda528ffc39 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 29 Mar 2022 23:50:01 +0000 Subject: [PATCH] Fix vue --- vue/components/{funkoCard.js => FunkoCard.js} | 12 +++++++----- vue/funkos.js | 9 +-------- vue/index.html | 6 +++--- 3 files changed, 11 insertions(+), 16 deletions(-) rename vue/components/{funkoCard.js => FunkoCard.js} (60%) diff --git a/vue/components/funkoCard.js b/vue/components/FunkoCard.js similarity index 60% rename from vue/components/funkoCard.js rename to vue/components/FunkoCard.js index c73c735..ee68803 100644 --- a/vue/components/funkoCard.js +++ b/vue/components/FunkoCard.js @@ -1,17 +1,19 @@ export default { - props: ['funko'], + props: { + funko: Object + }, template: `
-

{{funko.name}}

+

-

{{funko.desc}}

+

- Read more + Read more
` -} \ No newline at end of file +}; diff --git a/vue/funkos.js b/vue/funkos.js index 3aa0bd1..313c504 100644 --- a/vue/funkos.js +++ b/vue/funkos.js @@ -54,12 +54,5 @@ const funkos = [ price: 50, description: 'bob', rank: 1 - }, - { - title: 'My fave funko', - img: 'myfavefunko', - price: 'priceless', - description: 'arsehole', - rank: -400 } -]; \ No newline at end of file +]; diff --git a/vue/index.html b/vue/index.html index 261e8db..c3006c5 100644 --- a/vue/index.html +++ b/vue/index.html @@ -20,7 +20,7 @@
-
@@ -29,7 +29,7 @@ - \ No newline at end of file +