In my JSON data, a series of objects contain an array called "options". Some of these objects have items in this array while others do not. An example is shown below:
{
"label": "ORDERS",
"enabled": true,
"selected": true,
"options": [
{
"label": "Edit addresses",
"value": true
},
{
"label": "Cancel orders",
"value": true
},
{
"label": "Uncancel orders",
"value": false
}
]
},
{
"label": "FOO",
"enabled": true,
"selected": false,
"options": [
]
},
From the above example, you can see that "ORDERS" has options, while "FOO" does not.
This results in a layout that looks like this:
In addition to the repeater data, I have items such as the "Allowed" header and a checkbox.
I only want to display these items when the "options" array is not empty. This is how I have structured it: http://plnkr.co/edit/QLY9311r4nSCRUolKvLs?p=preview
However, I am struggling to find a way to hide the rows containing the "Allowed" header and checkbox when the "options" array is empty: