title: v-for and v-if not working together in vue.js
body: <p>A form is used to submit text and two options which tell vue which column to display the text in. When the col2 radio button is checked the submitted text should display in column 2. This is not happening, on column 1 text is displaying.</p>
  <p>I have two radio buttons which should pass the value 'one' or 'two' to a newInfo.option On submnit a method pushed the form data to the array 'info'.</p>
  <pre><code>&lt;input type=&quot;radio&quot; id=&quot;col1&quot; value=&quot;one&quot; v-model=&quot;newInfo.col&quot;&gt;
  &lt;input type=&quot;radio&quot; id=&quot;col2&quot; value=&quot;two&quot; v-model=&quot;newInfo.col&quot;&gt;
  </code></pre>
  <p>This data is being pushed to the array 'info' correctly and I can iterate through it. I know this is working because I can iterate through the array, an console.log all the data in it. All the submitted form data is there.</p>
  <p>Next I iterate through this array twice in the template. Once for info.col===&quot;one&quot; and the other iteration should only display when info.col===&quot;two&quot;. I am using a v-for and v-if together, which the vue.js documentation says is ok to do,</p>
  <p><a href="https://v2.vuejs.org/v2/guide/conditional.html#v-if-with-v-for" rel="nofollow noreferrer">https://v2.vuejs.org/v2/guide/conditional.html#v-if-with-v-for</a></p>
  <pre><code>&lt;div class=&quot;row&quot;&gt;
              &lt;div class=&quot;col-md-6&quot;&gt;
                  &lt;ol&gt;
                      &lt;li v-for=&quot;item in info&quot; v-if=&quot;item.col==='one'&quot;&gt;
                          text: {{ item.text }}, col: {{ item.col }}
                      &lt;/li&gt;
                  &lt;/ol&gt;
              &lt;/div&gt;
              &lt;div class=&quot;col-md-6&quot;&gt;
                  &lt;ol&gt;
                      &lt;li v-for=&quot;item in info&quot; v-if=&quot;!item.col==='two'&quot;&gt;
                          text: {{ item.text }}, col: {{ item.col }}
                      &lt;/li&gt;
                  &lt;/ol&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  <p>The full vue.js code is on github <a href="https://github.com/shanegibney/vueRadioButtons" rel="nofollow noreferrer">here</a></p>
  <p>And it is running on gh-pages <a href="https://shanegibney.github.io/vueRadioButtons/#/" rel="nofollow noreferrer">here</a></p>