Vue it is

I know, the 18th front-end change; I have a feeling there won't be a
19th.
This commit is contained in:
Daniel J. Summers committed 2017-07-29 16:28:27 -05:00
1 parent 632f06ac5f
commit 338f11d1ab
31 files changed
+12054 -60

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
<template>
<h2 v-if="!hideOnPage" class="mpj-page-title" v-html="title"></h2>
</template>
<script>
export default {
name: 'page-title',
props: ['title', 'hideOnPage'],
data () {
return {}
},
created () {
document.title = `${this.title} « myPrayerJournal`
},
watch: {
title () {
document.title = `${this.title} « myPrayerJournal`
}
}
}
</script>