VueJS: How can I use computed property with v-for

VueJS: How can I use computed property with v-for

Asked on November 22, 2018 in vue.js.
Add Comment


  • 1 Answer(s)

         Computed property cannot be produced for each repetition. Every objects will be their individual element and every one have its individual fullName computed property.

         Suppose, you don’t wanna generate user element, utilize function in-spite. Transfer fullName from computed property to functions, and utilize it as:

    {{ fullName(user) }}
    
    Answered on November 22, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.