title: How to obtain Checkbox values ( checked by user) using ng-model in AngularJS
body: <p>While trying to implement Checkbox functionality,I am not able to obtain which checkboxes the user has selected. How is this done?
  Below is my HTML snippet:</p>
  
  <pre><code>&lt;td&gt;
                  &lt;table border="0"&gt;&lt;th&gt;Tier&lt;/th&gt;
                  &lt;tr ng-repeat="item in tiertype"&gt;             
                      &lt;td&gt;
                      &lt;label class="checkbox" for="{{item.id}}"&gt;
                      &lt;input type="checkbox" ng-model="selection.ids[item.id]" name="tier_class" ng-checked="item.checked" id="{{item.id}}"/&gt;{{item.name}}
                      &lt;/label&gt;
                      &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
              &lt;/td&gt;
  </code></pre>
  
  <p>And below is my javascript snippet:</p>
  
  <pre><code>$scope.tiertype = [ 
                         { id: 1, name: "All", checked: true}, 
                         { id: 2, name: "Standard", checked: false },
                         { id: 3, name: "Unreserved", checked: false },
                         { id: 3, name: "Reserved", checked: false },
                         { id: 4, name: "General", checked: false }
                         ];
  </code></pre>
  
  <p>Iam not getting proper values on using "check box value= {{selection.ids}}". Moreover, on checking any checbox, all are getting checked or the checbox with id:1 (default).
  Seems strange to me, not able to figure out. Where am I going wrong as I dont have much experience in AngularJS.</p>