title: Dynamic Value Checkbox Vuejs 2
body: <p>I can't get the value of the checkbox.</p>
  
  <pre class="lang-html prettyprint-override"><code>    &lt;li v-for="mainCat in mainCategories"&gt;
        &lt;input type="checkbox" :value="mainCat.merchantId" v-model="mainCategories.merchantId" id="mainCat.merchantId" @click="merchantCategoryId"&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>My Methods:</p>
  
  <pre class="lang-js prettyprint-override"><code>    methods: {    
        merchantCategoryId: function() {
          console.log(this.mainCategories.merchantId)
        }
      }
  </code></pre>
  
  <p>When it clicks I only get true and false for uncheck. TY</p>