mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
25 lines
334 B
Vue
25 lines
334 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<h1>Info</h1>
|
||
|
<button
|
||
|
type="button"
|
||
|
@click="onClick"
|
||
|
>
|
||
|
click me
|
||
|
</button>
|
||
|
<nuxt-link to="/">
|
||
|
back
|
||
|
</nuxt-link>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
methods: {
|
||
|
onClick () {
|
||
|
this.$nuxt.context.error(new Error('test error'))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|