I am passing the context from the router but unable to get its value in vue page. I am getting an error
[Vue warn]: Property or method “message” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
resolve(
{
component: require('./assets/vue/pages/ContextDemo.vue'),
},
{
context: {
user: user,
}
}
but I am unable to get it in ContextDemo.vue
<div>{{message}}</div>
please help.