title: Can I pass parameters in computed properties in Vue.Js
body: <p>is this possible to pass parameter in computed properties in Vue.Js. I can see when having getters/setter using computed, they can take a parameter and assign it to a variable. like here from <a href="https://v2.vuejs.org/v2/guide/computed.html" rel="noreferrer">documentation</a>:</p>
  <pre class="lang-vue prettyprint-override"><code>computed: {
    fullName: {
      // getter
      get: function () {
        return this.firstName + ' ' + this.lastName
      },
      // setter
      set: function (newValue) {
        var names = newValue.split(' ')
    
        this.firstName = names[0]
        this.lastName = names[names.length - 1]
      }
    }
  }
  </code></pre>
  <p>Is this also possible:</p>
  <pre class="lang-vue prettyprint-override"><code>computed: {
    fullName: function (salut) {
      return salut + ' ' + this.firstName + ' ' + this.lastName    
    }
  }
  </code></pre>
  <p>Where computed property takes an argument and returns the desired output. However, when I try this, I am getting this error:</p>
  <blockquote>
  <p>vue.common.js:2250 Uncaught TypeError: fullName is not a function(…)</p>
  </blockquote>
  <p>Should I be using methods for such cases?</p>