title: Get value from array data in Vue
body: <p>I'm kinda new to Vue and i'm struggling to get one value from an array. I'm making an axios get request where I return an array of users containing the values (name, display_name, role, and few others fields). I'm able to get all these values and mount my table with the component below:</p>
  
  <pre><code>&lt;template&gt;
  &lt;div class="container"&gt;
      &lt;table class="mt-3 table roboto table-stripped table-hover table-sm"&gt;
          &lt;thead class="thead-light"&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th&gt;Username&lt;/th&gt;
              &lt;th&gt;Profile&lt;/th&gt;
              &lt;th class="text-center"&gt;Is manager&lt;/th&gt;
          &lt;/thead&gt;
          &lt;tbody v-for="user in users"&gt;
              &lt;td v-text="user.name"&gt;&lt;/td&gt;
              &lt;td v-text="user.username"&gt;&lt;/td&gt;
              &lt;td v-text="user.display_name"&gt;&lt;/td&gt;
              &lt;td class="text-center"&gt;
                  &lt;button 
                      class="letter-shadow btn-sm font-500 grey-darkest roboto letter-spacing"
                      :class="showRole"&gt;Activate
                  &lt;/button&gt;
              &lt;/td&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
  
      data() {
          return {
              users: [],
          }
      },
  
      computed: {
          showRole() {
              // wanted to diff button colors here
          }
      },
  
      mounted() {
          axios.get('/api/users').then(response =&gt; this.users = response.data);
      },
  
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>So I wanted to modify that class showRole depending on the value of  user.display_name, if the user.display_name is equal to "Manager" e.g. I would show a btn-danger. I just don't know how can I get this value to compare, if I try to use this.user.display_name on showRole method I get nothing (undefined). Thanks for any help.</p>