title: VUEJS Display nested object in <b-table> VUE-BOOTSTRAP
body: <p>I have an array of objects (users) gotten by an api request. Its structure is something like this:</p>
  
  <pre><code>api response: (5) [{…}, {…}, {…}, {…}, {…}]
  </code></pre>
  
  <p>Inside this array, the objects are like this:</p>
  
  <pre><code>0: {
     user_address_string: ('Street 1')
     id: (3)
     avatar: (img')
     ...
     user: {
       id: 1
       first_name: 'Lucas'
       last_name: 'Smith'
     }
  },
  1: {...},
  2: {...},
  ....
  ]
  </code></pre>
  
  <p>It is just a sample just to show you the structure. 
  As you can see, among its properties there's another object named <strong>user{}</strong>. 
  I need to display only the properties contained in this object. 
  I would like to keep the structure of the table I was using before I got this new api (which didn't have objects as properties).</p>
  
  <pre><code>&lt;b-table
    responsive
    v-if="users &amp;&amp; users.length &gt; 0"
    :fields="fields"
    :items="users"
  &gt;
  </code></pre>
  
  <p>The template should be something like this:</p>
  
  <pre><code>&lt;template slot-scope="data"&gt;
     {{ data.item.user }}
  &lt;/template&gt; 
  </code></pre>
  
  <p><code>data.item</code> should be the single user in the users array of objects, and with <code>.user</code> I should be able to access the properties of its object property <strong>user</strong>. (Going further <code>data.item.user.first_name</code>, etc, to access the single properties in it). What am I missing?
  Nothing is rendered on the screen. 
  No errors in the console though.
  In the script I have:</p>
  
  <pre><code>users: [],
  fields: [
        { key: 'id', label: 'ID'},
        { key: 'name', label: 'Name' }
  ]
  </code></pre>
  
  <p>So, how should I write the template for displaying the nested object’s properties?
  Also, the directive <code>v-if="users &amp;&amp; users.length &gt; 0"</code> in the b-table should still work, right? It is still an array, but of objects this time. Please correct me if I am wrong.
  Thank you</p>