I have an ng-repeat for a table, I want to be able to add a class when
You don't need a special function or controller to accomplish this: Full Plunker example: http://plnkr.co/edit/1hdcIOfz0nHb91uFWKrv I could show you the controller I used by it's empty except for the test data. You don't need a function. is clicked, and remove the class when un-clicked. Multiple >
{{node.name}}
{{node.date}}
{{node.city}}