Being a newcomer to vue, I have a fundamental question. In my template, I have a value coming from a parsed object prop like this:
<h1>{{myval.theme}}</h1>
The above code displays the value in the browser. However, I want to store this value in the data section of the instance. How can I save the data in the "getTheValue" data string? My current attempt is not successful:
props: {
myval: Object
},
data() {
return {
getTheValue: this.myval.theme
};
},