cyberfly
12/5/2019 - 10:03 AM

Vue map array of object into comma seperated list

computed: {
  
  state_list: function () {

      let list = this.visit_plan_states.map(function(s){ return s.name }).join(", ");

      return list;
  },
  
},
<textarea readonly="readonly" class="form-control" :value="state_list" name="state_list" id="" rows="2"></textarea>