I have some quotes and I  have a daynumber filter in AngularJS, the filter 
checks the "day" on the computer and then pull quote id from the database. 
So meaning if day is 14, then quote it is 14.

in my app.js

  $scope.dayNumber = $filter('date')(new Date(), 'd');

in html view, the expression that I used and working is:

{quote[dayNumber].quote}}

Now I would like to add a month filter so that my filter checks the day and 
the month, meaning if month number == 1 (January), then only check data in 
the database that contain column month: 1.

How could I create the month filter so it works with the day filter?
Thanks :),
Michel

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