title: Filter array by tag Vuejs
body: <p>I'm currently working with vuejs and vuex. Here is my issue : <br></p>
  
  <p>I have a store with all the data</p>
  
  <pre><code>state: {
    articles: [{
      title: "Article 1",
      id: 1,
      tag: "Tutorial"
    }, {
      title: "Article 2",
      id: 2,
      description: "Article 2",
      tag: "Review"
    }
   }]
  </code></pre>
  
  <p>}</p>
  
  <p>On the homepage, I want to display all kind of articles. On the tutorial page I only want to display articles with tag "tutorial", etc...</p>
  
  <p>I'm using <code>vue-router</code>. I'm working with a computed property and a <code>v-for</code> so I can loop in the articles.</p>
  
  <pre><code>computed: {
          articles() {
              if (this.$route.meta.title == 'Tutorial') {
                  return this.$store.state.articles.tag == 'Tutorial'
              }
              if (this.$route.meta.title == 'Review') {
                  return this.$store.state.articles.tag == 'Review'
              }
              else if (this.$route.meta.title == 'Home') {
                  return this.$store.state.articles
              }
          }
      }
  </code></pre>
  
  <p>I know that <code>return this.$store.state.articles.tag == 'Tutorial'</code> can't work, I'm looking for a way to code it correctly but I'm stuck! </p>
  
  <p>Also, if you have a completely different and better way to do it, feel free to tell me!</p>
  
  <p>Thank you for your time :)</p>