Filter, which you tried to build will not serve the purpose.
In this case, your filter must return a boolean, which will select the record
in ng-repeat to be displayed.
Solution to your problem can be addressed in the following way:
1. Create a variable dt in $scope within controller as:
$scope.dt = $filter('date')(new Date(), 'yyyy-MM-dd');
2. Change the HTML fragment as:
<div ng-repeat="i in data | *filter: {FechaActividad: dt}*">
<span>{{i.Estado}}</span><br/>
<span>{{i.FechaActividad}}</span><br/>
<span>{{i.NombreActividad}}</span><br/>
<hr/>
</div>
Hope this resolves the problem.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.