I would like to set the filter for the second ng-repeat to handle with the first one by displaying only the result of the current month. bookings and booking.monthDate is similar to month
Thanks you for helping to get the best practice here with Angular.js
.dataContainer{"ng-repeat"=>"month in months"}
%h2
%span.monthResa {{month}}
.monthDetailContainer
.fiche-inner{"ng-repeat"=>"booking in bookings | filter: ??? "}
note : this excerpt is in HAML but it doesn't matters since I use a precompalitor to get the .html
Angular is very clever :)
booking in bookings | filter: month