title: Checkboxes with array model in AngularJS
body: <p>Here are my checkboxes :</p>
  
  <pre><code>&lt;input type="checkbox" ng-model="data.lang[0]" id="FR" ng-true-value="'FR'" ng-false-value="''"  checked/&gt;FR
  &lt;input type="checkbox" ng-model="data.lang[1]" id="NL" ng-true-value="'NL'" ng-false-value="''" /&gt;NL
  &lt;input type="checkbox" ng-model="data.lang[2]" id="EN" ng-true-value="'EN'" ng-false-value="''" /&gt;EN
  </code></pre>
  
  <p>I'd like to check a language and update my model 'data.lang'</p>
  
  <p>But i have a problem :</p>
  
  <pre><code>If second checkbox is checked i have :
     [null,"NL"]
  If the third is checked i have :
     [null,null,'EN']
  </code></pre>
  
  <p>What i need to have :</p>
  
  <pre><code>If second checkbox is checked :
      ['NL']
  If second and third are checked :
      ['NL','EN']
  If all are checked :
      ['FR','NL','EN']
  </code></pre>
  
  <p>I don't know how to update my model like i want could you help me? Thanks</p>