2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-21 23:50:33 +03:00

chore: add test for changed fn context

This commit is contained in:
pimlie
2019-02-10 09:55:45 +01:00
parent c08e461857
commit 3cfbf878bb
2 changed files with 44 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<template>
<div>
<hello-world v-if="childVisible"></hello-world>
</div>
</template>
<script>
import HelloWorld from './hello-world.vue'
export default {
components: {
HelloWorld
},
metaInfo() {
return {
changed: this.changed
}
},
data() {
return {
childVisible: false,
changed: () => {}
}
}
}
</script>