Looking for a way to include a statement inside an element:
v-if="currentstep < maxStep"
I want to dynamically set the value of maxStep based on the number of components listed in my default export:
export default {
name: 'step',
data () {
return {
maxStep: 8,
currentstep: 0
}
},
components: {
ConfigPublicador,
ConfigServico,
ModeloReceita,
Integracoes,
ConfigTema,
ConfigApp,
ConfigExtras,
Assets,
Revisao
}
}
Is there a way to achieve something like this?
maxStep = components.length
Any suggestions or ideas would be greatly appreciated. Thank you.