0👍
✅
You cannot simply add custom
properties to the components. Instead add test
to data:
<template>
<div>
{{ test }}
</div>
</template>
<script>
export default {
metaInfo: {
title: 'Test',
titleTemplate: '%s - Example'
},
data: function() {
return {
test: 'Testing the properties'
};
}
}
</script>
Source:stackexchange.com