[Vuejs]-Append more than one field in v-text in Vue.Js

2👍

There several ways to do it.

  1. Use simple string concatenation inside v-text

     <li v-for="result in results"  v-text="result.stu_lname+' ' + result.stu_fname"></li>
    
  2. Without v-text

    {{result.stu_lname}} {{result.stu_fname}}

You can also created a method where u will pass result and return what u want.
Also dont forget to add key for v-for.

Leave a comment