title: Angularjs checkbox in ng-repeat table
body: <p>Im using angularjs to show a table from a json records with checkbox, and i have two problems:</p>
  
  <p><strong>First</strong>: I need all checkboxs true by default. Tested with ng-init but not working. Or just a button to toggle true-false all checkboxs</p>
  
  <p><strong>Second</strong> When uncheck a file, the object show quotes["", "", ""], but i need to show anything if not checked</p>
  
  <p>view</p>
  
  <pre><code>&lt;div ng-controller="TestController"&gt;
  &lt;table class="table table-striped"&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Seleccionar&lt;/th&gt;
                      &lt;th&gt;Servicio&lt;/th&gt;
                      &lt;th&gt;Detalle&lt;/th&gt;
                      &lt;th&gt;Precio&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;tr ng-repeat="(key, value) in listado"&gt;
                      &lt;td&gt;&lt;input type="checkbox" ng-model="ids[$index]" ng-true-value="{{value}}" ng-false-value="{{ undefined }}" ng-selected="checkAll"&gt;&lt;/td&gt;
                      &lt;td&gt;{{ value.modelo }}&lt;/td&gt;
                      &lt;td&gt;{{ value.detalle }}&lt;/td&gt;
                      &lt;td&gt;{{ value.precio_in | currency:'$':0 }}&lt;/td&gt;
                  &lt;/tr&gt;               
              &lt;/table&gt;
              {{ ids | json }}
  </code></pre>
  
  <p></p>
  
  <p>controller</p>
  
  <pre><code>var myApp = angular.module('myApp', [])
  .controller('TestController', ['$scope', function ($scope) {
  
  $scope.listado = [];
  $scope.ids = [];
  
      $scope.listado = [ { "id_stock": "4", "oc_id": "4", "detalle": "Revisión de suspención", "cat_id": "16", "codigo": "m20.1", "marca": "", "parte": "", "precio_in": "5000", "id_prov": "1", "cantidad": "1", "id_bodega": "1", "nom_prov": "Proveedor de prueba 1", "modelo": "MECANIZADOS Y OTROS", "nombre": "Bodega Conchalí", "status": "EN BODEGA", "id_cat": "16" }, { "id_stock": "5", "oc_id": "4", "detalle": "Revisión de frenos", "cat_id": "16", "codigo": "m2.2", "marca": "", "parte": "", "precio_in": "4500", "id_prov": "1", "cantidad": "1", "id_bodega": "1", "nom_prov": "Proveedor de prueba 1", "modelo": "MECANIZADOS Y OTROS", "nombre": "Bodega Conchalí", "status": "EN BODEGA", "id_cat": "16" }, { "id_stock": "6", "oc_id": "4", "detalle": "Revisión de ruedas", "cat_id": "16", "codigo": "m20.3", "marca": "", "parte": "", "precio_in": "4500", "id_prov": "1", "cantidad": "1", "id_bodega": "1", "nom_prov": "Proveedor de prueba 1", "modelo": "MECANIZADOS Y OTROS", "nombre": "Bodega Conchalí", "status": "EN BODEGA", "id_cat": "16" }]; }]);   
  </code></pre>
  
  <p>Check code
  <a href="http://jsfiddle.net/eCJ47/44/" rel="nofollow noreferrer">http://jsfiddle.net/eCJ47/44/</a></p>
  
  <p>Sorry for the english is not my native language. Thanks !!</p>