mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-20 23:57:57 +03:00
05b8891110
fix: boolean attributes client side
29 lines
399 B
Vue
29 lines
399 B
Vue
<template>
|
|
<div>
|
|
<keep-alive>
|
|
<hello-world v-if="childVisible"></hello-world>
|
|
</keep-alive>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import HelloWorld from './hello-world.vue'
|
|
|
|
export default {
|
|
components: {
|
|
HelloWorld
|
|
},
|
|
metaInfo() {
|
|
return {
|
|
title: this.title,
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
childVisible: true,
|
|
title: 'Alive World'
|
|
}
|
|
}
|
|
}
|
|
</script>
|