In my application, there is a menu page component. In this component, there are multiple static data and variable initialized. Like below
data() {
return {
tableInfo: {
headers: ...,
contents: ...,
pagination: ....
},
url: {
searchUri: ...,
detailsUri: ....
// other component specific uri
},
searhInfo: {
label: ...,
searchtext: ...,
// other things
}
}
},
So, kind of structure is following in all other components as well and other component specific variables and data are there too.
I want to reuse this properties to all my other components as well.
I created one mixin for this and it is working correct. Is there any better approach instead of mixin?