What I am trying to do is have two separate graphs, graph1 and graph2, and in each graph they will contain their own set of filter selections. The options to choose from are the same between the two graphs.
When a user selects a filter for a graph, it will save it to that graphs set of selectedData, when a user deselects it, it will remove it from the selectedData.
If a user wants to change between graph1 and graph2 they select which graph they want on the top panel.
What I am wanting to happen is that the buttons will be checked or unchecked based on the selectedData in the graph that it is being changed to. I am unsure how to set the checkboxes based on selectedData while bootstrap is being used.
I am thinking I may have to simulate a click, but am not sure how to go about this, or there may be a better way. Preferably using the same or similar bootstrap look.
I have made a plunker with a template of what I am doing.
Mostly Working Example: http://plnkr.co/edit/Vj3o05NXbWfFKgA6RhcG
Not working Example: Using ng-repeat.
I can't seem to get it working when i use ng-repeat