title: Vuejs Render list of Array based on key values
body: <p>I have a dataArray with data like this:</p>
  
  <p><code>dataArray: {'stat1': 'stat1stat', 'stat2': 'stat2stat', 'stat3': 'stat3stat'}</code></p>
  
  <p>and so on with hundreds of statistics in the array.</p>
  
  <p>I have been outputting things hard coded in the vue template like this:</p>
  
  <p><code>{{dataArray.stat2}}</code>
  <code>{{dataArray.stat3}}</code>
  ..etc</p>
  
  <p>What I would like to do is have a new array that specifies the keys I want to render. So something like this:</p>
  
  <p><code>dataToShow: ['stat2', 'stat3']</code></p>
  
  <p>And then somehow I could do a loop or v-for to only show the data that is in <code>dataToShow</code></p>
  
  <p>I've tried a few different ways and I can't get it to work. I think it needs to be a computed property but it isn't working.</p>
  
  <p>Can anyone give some advice on how to implement this?</p>