mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
26 lines
328 B
Vue
26 lines
328 B
Vue
<template>
|
|
<button @click="handleClick">
|
|
{{ label }}
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Button',
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
},
|
|
data: () => ({
|
|
clicked: false
|
|
}),
|
|
methods: {
|
|
handleClick () {
|
|
this.clicked = true
|
|
}
|
|
}
|
|
}
|
|
</script>
|