2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-05-17 15:09:38 +03:00
Files
vue-meta/test/components/changed.vue
T
pimlie 05b8891110 test: add e2e tests
fix: boolean attributes client side
2019-03-12 10:03:46 +01:00

35 lines
486 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
}
},
data() {
return {
childVisible: false,
_changed: () => {}
}
},
mounted() {
this._changed = this.changed.bind(this)
}
}
</script>