Share common component & filter data
This commit is contained in:
19
components/CategoryPage.vue
Normal file
19
components/CategoryPage.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
h1 {{ resources.title }}
|
||||
.cards
|
||||
template(v-for='resource in resources.resources')
|
||||
Card(:title='resource.title' :desc='resource.desc' :url='resource.url')
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Card from './Card'
|
||||
|
||||
export default {
|
||||
props: ["resources"],
|
||||
components: {
|
||||
Card
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user