Computed function in Vue.js, I am not sure if step Four is bug or as designed 😁
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
computed: { isStepOne() { return this.formStep === 0 }, isStepTwo() { return this.formStep === 1 }, isStepThree() { return this.formStep === 2 }, isStepFour() { return this.formStep === 3 }, isStepFive() { return this.formStep === 3 }, }, |