2022-11-18 08:30:44 +01:00

22 lines
740 B
Vue

<template>
<div>
<h1>Catégorie : {{ $route.params.categoryName }}</h1>
<div class="container">
<div class="row">
<ProductContainer>
<ProductCard name="test1" price="10" description="description1" class="col-4" />
<ProductCard name="test2" price="20" description="description2" class="col-4" />
<ProductCard name="test3" price="30" description="description3" class="col-4" />
</ProductContainer>
</div>
</div>
</div>
</template>
<script setup>
const route = useRoute()
console.log(route.params.categoryName)
useHead({
title: 'Catégorie ' + route.params.categoryName
})
</script>