Skip to content

How you can have a dynamic operation in vue

Hello I have a method that modifies a state of vuex, the main function of the method is to add or subtract to a state of vuex. setStep(state, type) { state.currentStep++; } But I need to pass the …

Order childs of array

I have this array with parents and their children: const array = [ { ‘title’:’America’, ‘type’: 1 }, { ‘title’:’Brasil’, ‘type’: 0 }, { ‘…