ng-model inside ng-repeat doesn't work
<p>Here is my markup:</p>

<pre><code>&lt;table class="table table-striped hover-table" ng-repeat="item in optionsData" id="optionsTable"&gt;
    &lt;thead&gt;
            &lt;tr&gt;
                &lt;th class="trigger-man" ng-model="showOptions" ng-click="showOptions = !showOptions"&gt;{{item.reportName}}&lt;span class="pull-right glyphicon" ng-class="{'glyphicon-chevron-right': !showOptions, 'glyphicon-chevron-down': showOptions}"&gt;&lt;/span&gt;&lt;/th&gt;
            &lt;/tr&gt;
        &lt;/thead&gt;
      &lt;tbody ng-show="showOptions"&gt;
        &lt;tr ng-if="item.hasOptions == false"&gt;
            &lt;td&gt;No options available.&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr ng-if="item.hasOptions == true &amp;&amp; option.title.length &gt; 0" ng-repeat="option in item.reportOptions"&gt;
            &lt;td&gt;&lt;div class="alert alert-info"&gt;&lt;strong&gt;{{option.title}}&lt;/strong&gt;&lt;/div&gt;&lt;br&gt;
            &lt;!--If text or select--&gt;
                &lt;div class="form-group" ng-repeat="input in option.inputs" ng-if="option.type == 'text' || optionType == 'select'"&gt;
                    &lt;label for="{{input.label}}" class="col-md-3 control-label"&gt;{{input.label}}&lt;/label&gt;
                    &lt;div class="col-md-7 col-shiv"&gt;
                      &lt;input class="form-control" type="{{option.type}}" placeholder="{{input.label}}" name="{{input.label}}" ng-model="optionsForm.{{input.value}}" /&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
             &lt;!-- if radio or checkbox--&gt;
             &lt;div class="form-group" ng-repeat="input in option.inputs" ng-if="option.type == 'radio' || option.type == 'checkbox'"&gt;
          &lt;label for="{{input.label}}" class="col-md-3 control-label"&gt;{{input.label}}
            &lt;input type="{{option.type}}" name="{{input.label}}" id="{{input.label}}" value="{{input.value}}" ng-model="optionsForm.{{input.value}}"&gt;
            &lt;/label&gt;

        &lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;

      &lt;/tbody&gt;
    &lt;/table&gt;
</code></pre>

<p>And here is my JSON:</p>

<pre><code>{
"code": 0,
"message": "",
"data": {
    "reports": [{
        "reportID": 16,
        "reportName": "Comprint",
        "hasOptions": true,
        "reportOptions": [{
            "title": "Comprint - sections to print",
            "type": "checkbox",
            "inputs": [{
                "label": "Some Interests \/ Some Map Coordinates",
                "value": "comprint_module_interests_coords",
                "name": "Comprint_modules[]",
                "checked": true
            }, {
                "label": "Some Components",
                "value": "comprint_module_components",
                "name": "Comprint_modules[]",
                "checked": true
            }, {
                "label": "Organizational Focus",
                "value": "comprint_module_organizationalfocus",
                "name": "Comprint_modules[]",
                "checked": true
            }, {
                "label": "Some Perspectives",
                "value": "comprint_module_perspectives",
                "name": "Comprint_modules[]",
                "checked": true
            }, {
                "label": "Work Styles",
                "value": "comprint_module_workstyles",
                "name": "Comprint_modules[]",
                "checked": true
            }, {
                "label": "Log",
                "value": "comprint_module_log",
                "name": "Comprint_modules[]",
                "checked": true
            }]
        }, {
            "title": "Comprint - sort type",
            "type": "radio",
            "inputs": [{
                "label": "Sort In Order Selected",
                "value": "default",
                "name": "Comprint_sort_type",
                "checked": true
            }, {
                "label": "Sort Last Names Alphabetically",
                "value": "alpha_lastname",
                "name": "Comprint_sort_type",
                "checked": false
            }]
        }, {
            "label": "Comprint - Comparison Print Person",
            "name": "Comprint_person",
            "type": "select",
            "options": [{
                "text": "yes",
                "value": "yes",
                "selected": false
            }, {
                "text": "no",
                "value": "no",
                "selected": true
            }]
        }, {
            "label": "Comprint - Dictionary Page",
            "name": "Comprint_dictionary_page",
            "type": "select",
            "options": [{
                "text": "yes",
                "value": "yes",
                "selected": true
            }, {
                "text": "no",
                "value": "no",
                "selected": false
            }]
        }, {
            "label": "Comprint - Mask Names",
            "name": "Comprint_masknames",
            "type": "select",
            "options": [{
                "text": "yes",
                "value": "yes",
                "selected": false
            }, {
                "text": "no",
                "value": "no",
                "selected": true
            }]
        }]
    }]
}
}
</code></pre>

<p>Everything works perfectly, except that I need to collect the data at the end of the action and I need specific identifiers set as the ng-model (eg optionsForm.{{input.value}}), and I keep getting a syntax error with the code above. Can anyone tell me what I'm doing wrong?</p>