mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
31 lines
582 B
Vue
31 lines
582 B
Vue
<template>
|
|
<div>
|
|
<input v-model="msg">
|
|
<p>msg: {{ msg }}</p>
|
|
<p>env: {{ env }}</p>
|
|
<p>computed msg: {{ computedMsg }}</p>
|
|
<button @click="greet">
|
|
Greet
|
|
</button>
|
|
<p>
|
|
<NuxtLink to="/about">
|
|
About page
|
|
</NuxtLink>
|
|
</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Component from 'nuxt-class-component'
|
|
import Base from '@/components/Base'
|
|
|
|
export default
|
|
@Component
|
|
class Child extends Base {
|
|
// override parent method
|
|
greet () {
|
|
console.log('child greeting: ' + this.msg) // eslint-disable-line no-console
|
|
}
|
|
}
|
|
</script>
|