I'm trying to make a select list with two or three options, which depends on the first selected option in a ng-repeat. When the customer selects in the first option "Dome Camera" there should be only list two options in the second ng-repeat based on the listed mounting items (in this case: roof, wall and pole).
Can somebody help me with this?
<tr>
<td>
<select class="form-control" name="type-camera">
<option ng-repeat="camera in cameraTypes">{{camera.name}}</option>
</select>
</td>
<td>
<select class="form-control" name="type-camera">
<option ng-repeat="mounting in ?????">{{mounting}}</option>
</select>
</td>
</tr>
The $scope.cameraTyps looks like:
"0": {
"name": "Dome Camera",
"price": 2975.67,
"install": 4,
"mounting": {
"name": "roof",
"name": "wall",
"name": "pole"
}
},
"1": {
"name": "WV-SF135E",
"price": 327.70,
"install": 1.5,
"mounting": {
"name": "roof",
"name": "wall"
},
"lens": "fixed"
}