ng-model value not passed to the controller function
<p>I am using ng-model to pass the form value to a controller function. But it is not passing correct values of the check boxes. Here is my plunker. Please help me out with this.</p>

<p><a href="https://plnkr.co/edit/3gOuQwzt3SMNbAXplq0x?p=preview" rel="nofollow">https://plnkr.co/edit/3gOuQwzt3SMNbAXplq0x?p=preview</a></p>

<p>My template is:</p>

<pre><code>&lt;div class="tab-pane fade " ng-repeat="(key, value) in all_user_wl_data" id="{{key}}" ng-class='{"in active":$first}'&gt;
                        &lt;div class="form-group"&gt;
                        &lt;div class="row"&gt;
                            &lt;div class="col-sm-6 col-md-6 col-lg-6" ng-repeat="(key1, value1)  in value.wl_dict"&gt;
                                &lt;div class="checkbox checkbox-success"&gt;
                                &lt;input id="{{key1}}" type="checkbox" name="valueis" class="form-control" ng-model="formData[key1]"&gt;
                                    &lt;label for="{{key1}}"&gt;
                                        {{value1}}
                                &lt;/label&gt;
                            &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;/div&gt;

         &lt;div class="form-group"&gt;
                        &lt;div class="row"&gt;&lt;div class="col-lg-3 col-md-3 col-sm-3"&gt; &lt;label class="control-label"&gt;Group Name &lt;/label&gt;&lt;/div&gt;
                        &lt;div class="col-md-6 col-sm-6 col-lg-6"&gt; &lt;input type="text" name="regular" class="form-control" ng-model="formData.key2"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
                        &lt;button type="button" class="btn btn-success" data-original-title="" title="" ng-click="createGroup(formData)"&gt;Save changes&lt;/button&gt;

                &lt;/div&gt;
</code></pre>

<p></p>

<p>Here when I print console.log(formData), it prints only the value of text box and doesn't prints checkbox value.</p>