title: Input type checkbox Angular to be checked if object value is string of 1
body: <p>In my controller I have object of properties in which </p>
  
  <pre><code>isSampleData = "1"   
  </code></pre>
  
  <p>this is a string value and if it is "1" then I want the checkbox to be checked</p>
  
  <p><strong>Controller is</strong></p>
  
  <pre><code>$scope.client
  </code></pre>
  
  <p><strong>HTML template</strong></p>
  
  <pre><code>&lt;strong&gt;{{client.IsSampleData}}&lt;/strong&gt;
  </code></pre>
  
  <p>However I want to not have it in a template but as a checkbox </p>
  
  <p>Can and Should I use  <strong>ng-model</strong> ? </p>
  
  <pre><code>&lt;input type="checkbox"
       ng-model="string"
       value="string" 
       ng-value="string"/&gt;
  </code></pre>
  
  <p>Obviously that code is not using the <code>client.IsSampleData</code></p>