title: Iterate an object -> array -> object with Vue JS Typescript
body: <p>So i have an object that contains an array of objects. I need to grab the data in each object of the array to display opening hours.</p>
  
  <p>i have successfully retrieved each key value in the for loop inside the snippet. but i am unsure how to display this in my .vue view page. </p>
  
  <p>Do i use string interpolation? Am i supposed to use the v-for directive inside the .vue page instead to display the data?</p>
  
  <p>Still reasonably new to Vue JS so any help would be appreciated!</p>
  
  <p><a href="https://i.stack.imgur.com/1RTDX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1RTDX.png" alt="enter image description here"></a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import {
    Vue,
    Component
  } from 'vue-property-decorator';
  import {
    namespace
  } from 'vuex-class';
  import FoodMerchant from '../../models/FoodMerchant';
  
  export default class MerchantProfilePage extends Vue {
    @namespace('merchant').State('foodMerchant') foodMerchant!: FoodMerchant;
  
    openingHours() {
      for (let i = 0; i &lt; this.foodMerchant.opening_hours.data.length; i++) {
        console.log(this.foodMerchant.opening_hours.data[i].startHour);
      }
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button @click="openingHours()"&gt;show opening hours&lt;/button&gt;
  
  &lt;div class="openingHours d-flex flex-wrap mb-10"&gt;
    &lt;div class="d-flex justify-content-between mb-10 w-100"&gt;
      &lt;h5 class="font-italic text-black font-12"&gt;
        Wednesday
      &lt;/h5&gt;
  
      &lt;h5 class="font-italic text-black font-12 font-weight-light"&gt;
        5:00pm - 11:00pm
      &lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="openingHours d-flex flex-wrap mb-10"&gt;
    &lt;div class="d-flex justify-content-between mb-10 w-100"&gt;
      &lt;h5 class="font-italic text-black font-12"&gt;
        Thursday
      &lt;/h5&gt;
  
      &lt;h5 class="font-italic text-black font-12 font-weight-light"&gt;
        5:00pm - 11:00pm
      &lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="openingHours d-flex flex-wrap mb-10"&gt;
    &lt;div class="d-flex justify-content-between mb-10 w-100"&gt;
      &lt;h5 class="font-italic text-black font-12"&gt;
        Friday
      &lt;/h5&gt;
  
      &lt;h5 class="font-italic text-black font-12 font-weight-light"&gt;
        5:00pm - 11:00pm
      &lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="openingHours d-flex flex-wrap mb-10"&gt;
    &lt;div class="d-flex justify-content-between mb-10 w-100"&gt;
      &lt;h5 class="font-italic text-black font-12"&gt;
        Saturday
      &lt;/h5&gt;
  
      &lt;h5 class="font-italic text-black font-12 font-weight-light"&gt;
        5:00pm - 11:00pm
      &lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="openingHours d-flex flex-wrap mb-10"&gt;
    &lt;div class="d-flex justify-content-between mb-10 w-100"&gt;
      &lt;h5 class="font-italic text-black font-12"&gt;
        Sunday
      &lt;/h5&gt;
  
      &lt;h5 class="font-italic text-black font-12 font-weight-light"&gt;
        5:00pm - 11:00pm
      &lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>