2017-10-19 08:56:00 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<input v-model="msg">
|
2018-07-12 12:03:50 +00:00
|
|
|
<p>msg: {{ msg }}</p>
|
|
|
|
<p>env: {{ env }}</p>
|
|
|
|
<p>computed msg: {{ computedMsg }}</p>
|
2017-10-19 08:56:00 +00:00
|
|
|
<button @click="greet">Greet</button>
|
|
|
|
<p><nuxt-link to="/about">About page</nuxt-link></p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Component from 'nuxt-class-component'
|
|
|
|
import Base from '@/components/Base'
|
|
|
|
|
2018-08-10 13:45:58 +00:00
|
|
|
export default
|
2017-10-19 08:56:00 +00:00
|
|
|
@Component
|
2018-08-10 13:45:58 +00:00
|
|
|
class Child extends Base {
|
2017-10-19 08:56:00 +00:00
|
|
|
// override parent method
|
2017-10-31 13:43:55 +00:00
|
|
|
greet() {
|
|
|
|
console.log('child greeting: ' + this.msg) // eslint-disable-line no-console
|
2017-10-19 08:56:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|