How to highlight a selected row in ngRepeat?
问题 I couldn't find something that will help me to solve this simple issue in Angular. All the answers are relevant for navigation bars when a comparison is being made against location path. I've built a dynamic table using list and ngRepeat . When I click a row I'm trying to assign this row a css class, selected, to highlight the fact that this row has been selected by user, and remove the .selected from previously highlighted row. I'm missing the method to bind between the row that been