Update
The question was not very clear, so here is what you need only with the ng-bind
directive. If the content is larger, you can switch to the method suggested by @JustOneMoreQuestion below.
<li ng-repeat="r in results" ng-if="r.date"> <div ng-bind="r.date ? r.date : 'Date not confirmed yet.'"></div> </li>
You can easily do using ng-if
<li ng-repeat="r in results" ng-if="r.date"> </li>
OR go for a filter that will filter them, create a collection of the element with date
in it.
<li ng-repeat="r in results| filter: { date: '' }"> </li>
source share