title: How to store values(i.e. 'Y'- for checked, 'N' - for unchecked) of multiple checkbox in database using angularjs?
body: <p><a href="http://i.stack.imgur.com/dAdyK.png" rel="nofollow">I've attached the screenshot of my module. I want the store the values('Y','N') of selected checkbox in database</a></p>
  
  <pre><code>&lt;tr data-ng-repeat="data in RoleOperation track by $index"&gt;
      &lt;td&gt;{{$index + 1}}&lt;/td&gt;
      &lt;td&gt;
          &lt;label&gt;{{RoleOperation[$index].vname}}&lt;/label&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;label&gt;{{RoleOperation[$index].id}}&lt;/label&gt;
      &lt;/td&gt;
  
      &lt;td class="text-center"&gt;
          &lt;input type="checkbox" data-ng-model="data.viewflg[$index]" /&gt;
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          &lt;input type="checkbox" data-ng-model="data.addflg[$index]" /&gt;
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          &lt;input type="checkbox" data-ng-model="data.editflg[$index]" /&gt;
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          &lt;input type="checkbox" data-ng-model="data.deleteflg[$index]" /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Here <strong>RoleOperation</strong> is Object, which contains names of categories.
  How to give value to data-ng-model? And how to access particular checkbox in controller?
  plz help me..</p>