I want to filter a date but I don't know how to add this filter function:
var app = angular.module('myApp', []);
app.controller('datCtrl', function($scope) {
    $scope.today = new Date();
});

to my code to my module run function?

angular.module('angularApp', ['comment','commentList', 'commentForm', 
'commentBox'])
  .run(function($rootScope){
    $rootScope.comments = [{'author': 'Santiago',
      'msg': 'Msg 1', id: 1, 'date':"04/17/2016"},{'author': 'Pablo', 'msg': 
'Msg 2', id: 2, 'date':"05/01/2016"}];

});


thanks,

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to