fix: frontend page title

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2021-02-12 12:16:24 +05:30
parent b2f76391db
commit 1eff15f08d
Signed by: codingcoffee
GPG key ID: F7D58AAC5DACF8D3
3 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,5 @@
{
"name": "frontend",
"name": "Bullish",
"version": "0.1.0",
"private": true,
"scripts": {

View file

@ -9,6 +9,14 @@
<script>
export default {
name: 'App',
watch: {
'$route': {
handler: (to) => {
document.title = to.meta.title || 'Bullish'
},
immediate: true
}
},
}
</script>

View file

@ -13,6 +13,9 @@ export default new VueRouter({
path: '/bhavcopy',
name: 'bhavcopy',
component: BhavCopy,
meta: {
title: 'Bhav Copy - Equity'
}
}
]
})