Files
myPrayerJournal/src/app/src/components/PageTitle.vue
T

18 lines
354 B
Vue
Raw Normal View History

2017-08-05 22:48:09 -05:00
<template lang="pug">
h2.mpj-page-title(v-if="!hideOnPage" v-html="title")
2017-07-29 16:28:27 -05:00
</template>
<script>
export default {
name: 'page-title',
props: ['title', 'hideOnPage'],
created () {
document.title = `${this.title} « myPrayerJournal`
},
watch: {
title () {
document.title = `${this.title} « myPrayerJournal`
}
}
}
</script>