I have a this JSON data : [ { "product_spec": { "id": 12, "name": "internal_storage", "unit_arr": [ { "unitID": 2, "name": "MB" }, { "unitID": 3, "name": "GB" } ] } }, { "product_spec": { "id": 13, "name": "RAM", "unit_arr": [ { "unitID": 2, "name": "MB" }, { "unitID": 3, "name": "GB" } ] } }, { "product_spec": { "id": 14, "name": "headset_present" } }, { "product_spec": { "id": 15, "name": "network_type" } }, { "product_spec": { "id": 16, "name": "memory_card_slot_type" } }, { "product_spec": { "id": 17, "name": "hybrid_sim_slot" } }, { "product_spec": { "id": 18, "name": "processor_brand" } }, { "product_spec": { "id": 19, "name": "touchscreen" } }, { "product_spec": { "id": 20, "name": "phablet" } }, { "product_spec": { "id": 21, "name": "primary_camera" } }, { "product_spec": { "id": 22, "name": "operating_system" } }, { "product_spec": { "id": 23, "name": "number_of_core" } }, { "product_spec": { "id": 24, "name": "resolution" } }, { "product_spec": { "id": 25, "name": "display_size", "unit_arr": [ { "unitID": 6, "name": "inch" } ] } }, { "product_spec": { "id": 26, "name": "phone_type" } }, { "product_spec": { "id": 27, "name": "clock_speed" } }, { "product_spec": { "id": 28, "name": "battery_capacity" } }, { "product_spec": { "id": 30, "name": "OS_version" } }, { "product_spec": { "id": 31, "name": "sim_type" } }, { "product_spec": { "id": 32, "name": "OTG_compatible" } } ]
if unit_arr is present i want to display product_spec.name next to that unit_arr.name in a drop down , I tried with nested ng-repeat i am not getting drop down please help me. Here is my mark up Code: <div class="form-group" ng-hide="types=='edits'" ng-repeat="option in productSpecs"> <label class="form-group">{{option.product_spec.name}} <div class="form-group" style="padding-right: 50px;"> <input type="text" class="form-control" ng-model="option.product_spec.editName"> <!-- <span class="indicator"></span> --> </div> </label> <label class="form-group">{{j.name}} <div class="form-group" style="padding-right: 50px;"> <select class="form-control" ng-repeat= "j in option.unit_arr" name="units" ng-model="option.unit_arr"> <!-- <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> --> </select> <!-- <span class="indicator"></span> --> </div> </label> </div> Regards Vishnu B -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.