Within my data tracking appointments, I have information on months, weeks, days, and timeslots.
When it comes to the listing view, displaying "weeks" is unnecessary (although important for other reports).
To eliminate days without appointments, I can use the following filter:
<div ng-repeat="month in appointments.months: | filter:{????:''}">
<div>{{month.name}}</div>
<div ng-repeat="week in month.weeks"> <!--Omitting display for weeks-->
<div ng-repeat="day in weeks.days | filter:{timeslots:''}">
....</div></div></div>
The filter "{timeslots:''}" successfully hides days without appointments.
In addition, I want to hide months without appointments. I've experimented with variations of |filter:{weeks.days.timeslots:''} without success.
Is there a way to perform a deep filter on values in angularjs, or do I need to create a custom filter?