title: How to make checkbox checked if condition is true?
body: <p>On page load i am checking if attestationStatus flag is approved i want to make check box checked , with below implementation its not working, Any idea what implemented wrong.</p>
  
  <p>main.html </p>
  
  <pre><code>&lt;div class="col-md-3"&gt;
      &lt;label class="radio-inline"&gt;
          &lt;input type="checkbox" 
              ng-model="aprv" 
              name="attestorFlag" 
              id="attestorFlag" 
              ng-value="'Y'"&gt; I attest 
          &lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>main.js</p>
  
  <pre><code>if ($scope.attestorObj.attestationStatus === 'approved') {
      $scope.aprv = 'Y';
  }
  </code></pre>