Computed function in Vue.js

Member

adelia_boyer

by adelia_boyer , in category: JavaScript , 2 months ago

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
  },
},


Facebook Twitter LinkedIn Telegram Whatsapp Pocket

no answers