I am currently working with an AngularJs object that looks like this:
$scope.data = {'options': [{ "id": 1, "text": "Option 1", "isHidden": 0 }, { "id": 2, "text": "Option 2", "isHidden": 1 }, { "id": 3, "text": "Option 3", "isHidden": 0 }]};
Using the code snippet below, I am able to render a dropdown menu containing all the items in the object:
<select ng-model="data.selectedValue" ng-options="option.text for option in data.options" class="form-control"></select>
Is there a way to only display elements where "isHidden = 0"? For example, I would like to show only "Option 1" and "Option 3" in the dropdown menu.