在angularjs中单击“在循环中添加新内容”时未出现新文本字段

在angularjs中单击“在循环中添加新内容”时未出现新文本字段,angularjs,Angularjs,这是我的html块 <div class="form-group" ng-repeat="n in [1, 2, 3, 4, 5, 6]"> <div class="choice-div" ng-if="webfront.customer_fields[$index].input_type == 4"> <label class="col-sm-3 control-label no-padding-right" for="form-field-1">

这是我的html块

<div class="form-group" ng-repeat="n in [1, 2, 3, 4, 5, 6]">  
<div class="choice-div" ng-if="webfront.customer_fields[$index].input_type == 4">
    <label class="col-sm-3 control-label no-padding-right" for="form-field-1">Choices : </label>
    <div class="col-sm-9">                                                    
        <div ng-repeat="textBox in webfront.customer_fields[$index].webfront_field_values" class="addtext-div">                                                       
            <input ng-model="textBox.value" class="col-xs-10 col-sm-5 addtext_box" type="text" id="{{textBox.id}}" required=""  placeholder="Value" autocomplete="off" style="width: 40%;">
            <span  ng-click="removeTextBox(webfront.customer_fields[$parent.$index].webfront_field_values, $index, textBox.id)" style="margin-left: 20px;cursor: pointer;"> <i title="Cancel this option!" class="raty-cancel cancel-off-png" data-alt="x"></i></span>
        </div>   
        <span class="btn btn-sm btn-success" ng-click="addTextBox(webfront.customer_fields[$index].webfront_field_values)"><i class="ace-icon fa fa-plus"></i> Add Option</span>
        <br class="clear"/>                                                     
    </div>
</div>
下面我已经包括了图片如何是我的html

虽然输入字段中有数据,但正如我上面提到的,一切都很正常

但是,虽然没有数据,但只有添加选项出现。而且新文本字段的添加选项也不起作用


我想在添加选项的顶部应该有一个文本字段,单击添加选项时,新文本字段应该带有删除选项。谁能帮我解决这个问题。

需要更多代码!发布控制器文件此我的响应数据位于控制器代码$scope.webfront=response.data.webfront中;var cust_length=$scope.webfront.customer_fields.length;对于($i=0;$iThis is my output of json formatted angular data webfront{"id":1,"customer_fields":[{"id":24,"webfront_id":1,"name":"CA1","webfront_field_values":[]},{"id":25,"webfront_id":1,"name":"Education","webfront_field_values":[{"id":14,"webfront_field_id":25,"value":"B.tech"},{"id":15,"webfront_field_id":25,"value":"MCA"},{"id":16,"webfront_field_id":25,"value":"MBA"}],"customer_checkbox":true}]}