Skip to content
Advertisement

Collapse divs created with angular js ng-repeat and filter

I am trying to achieve something like the image below. This is my data

JavaScript

The objective is that If you click on any of the numbers underlines the reports that belong to that month hide or show (collapsible). I have tried many things but it seems I cannot figure it out what I need. I have made a JS BIN where my code is.

JavaScript

Any help will be kindly appreciate it. Thanks

enter image description here

JavaScript

Advertisement

Answer

this works

JavaScript

in the controller and the html this

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement