Created
May 17, 2022 16:47
-
-
Save lloydjatkinson/2abfda26848f8fdf998ee5bbb821de7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ul> | |
<li v-for="(breadcrumb, index) in breadcrumbs" :key="index"> | |
<Breadcrumb :name="breadcrumb.name" :url="breadcrumb.url" /> | |
</li> | |
</ul> | |
</template> | |
<script> | |
import { defineComponent } from 'vue'; | |
import Breadcrumb from './Breadcrumb.vue'; | |
export default defineComponent({ | |
name: 'Breadcumbs', | |
components: { | |
Breadcrumb, | |
}, | |
props: { | |
breadcrumbs: { | |
type: Array, | |
required: true, | |
default: () => [], | |
}, | |
}, | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment