My current code structure is as follows:
<template>
..somecode
{{showEditFlag}}
</template>
<script>
export default{
data: function() {
return { showEditFlag };
}
}
</script>
Could it be simplified to something like this instead?
<template>
..somecode
{{showEditFlag}}
</template>
<script>
export default{
showEditFlag
}
I have a feeling that my current approach involves unnecessary syntax.
Thank you in advance!