I'm building a filter AngularJS, to display only data that contains the 
current date in the query, at the moment I'm doing this, but I can not get 
it to work.

-J_Wjq2vkPJxCkmk3Wxp
  Estado: "pendiente"
  FechaActividad: "2014-11-11"
  NombreActividad: "Actividad 1"

  -J_WrCwULkPGRD5-mZ6z
  Estado: "aprobado"
  FechaActividad: "2014-10-11"
  NombreActividad: "Actividad 2"

This is the filter I try to build to build

 app.filter('fechas', function($filter){
 return function(input)
 {
  if(input == null){ return ""; }

  var _date = $filter('date')(new Date(input), 'MMM dd yyyy');

  return _date.toUpperCase();

 };});

and so I am showing my html.

 <div ng-repeat="i in list | 
date"><span>{{i.Estado}}</span><span>{{i.FechaActividad}}</span><span>{{i.NombreActividad}}</span></div>

also try to do the following but neither had resulted

 <div ng-repeat="i in list | fechas:['FechaActividad']">

-- 
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.

Reply via email to