[Vuejs]-Trouble registering a property in App.vue

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>

Leave a comment