2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-22 19:30:33 +03:00

refactor: small improvements (mainly tests)

This commit is contained in:
pimlie
2019-03-08 23:14:24 +01:00
committed by Alexander Lichter
parent 5ad671169b
commit f490a48b99
6 changed files with 116 additions and 24 deletions
+10 -2
View File
@@ -11,16 +11,24 @@ export default {
components: {
HelloWorld
},
props: {
changed: {
type: Function
}
},
metaInfo() {
return {
changed: this.changed
changed: this._changed
}
},
data() {
return {
childVisible: false,
changed: () => {}
_changed: () => {}
}
},
mounted() {
this._changed = this.changed.bind(this)
}
}
</script>