I have an ng-repeat list displaying a collection of objects. I've implemented a filter that makes the list display only objects that have been inserted today. It looks like this:
<div class="row msf-row"
ng-repeat="record in recordlist | filter: record.date = dateJson">
This is working fantastic. My problem is that I want to show both objects recorded today, and also records that don't have the property arrival (as they might have been introduced yesterday, but they need to be marked as arrived).
I've tried this but till today at 00.00 won't know if it's correct.
<div class="row msf-row"
ng-repeat="record in recordlist |
filter: record.date = dateJson ||
record.date != dateJson && !record.arrival">
Does this make sense?