mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 05:39:38 +03:00
31 lines
407 B
Vue
31 lines
407 B
Vue
<template>
|
|
<div>
|
|
<hello-world v-if="childVisible"></hello-world>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import HelloWorld from './hello-world.vue'
|
|
|
|
export default {
|
|
components: {
|
|
HelloWorld
|
|
},
|
|
props: {
|
|
changed: {
|
|
type: Function
|
|
}
|
|
},
|
|
metaInfo() {
|
|
return {
|
|
changed: this.changed.bind(this)
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
childVisible: false
|
|
}
|
|
}
|
|
}
|
|
</script>
|