title: Conditional v-bind:check in vuejs
body: <p>I would like to have my checkbox checked according to existence of particular data in the database. I am using vuejs in laravel. 
  Following is my code for checkbox: </p>
  
  <pre><code>&lt;input type="checkbox" value="{{$complaint-&gt;complaintID}}" :checked="CheckCECDecisionSigned({{$complaint-&gt;complaintID}})" disabled&gt;
  </code></pre>
  
  <p>And below is my vuejs method: </p>
  
  <pre><code>methods: {
          CheckCECDecisionSigned: function (complaintID) {
              if (complaintID) {
                  var self = this;
                  this.$http.get('/cimsm/public/api/fetchCECDecisionSignature/' + complaintID).then(function (response) {
                      if (response.data.length &gt; 0) {
                          return true;
                      }
                  });
              }
          },
  </code></pre>
  
  <p>As you can see, if <code>response.data.length &gt; 0</code> then i would like to return true and hence have the checkbox checked. But i can't seem to get the method to return Boolean even when <code>response.data.length</code> is greater than <code>0</code> Can you help me out?.</p>