Angular: Getting list with ng-repeat with dividers / separators
问题 Still pretty new with Angular, just finding my way around. I'm using ng-repeat to output an alphabetised list of names. I'd like to add dividers within this list that act as labels. Example: -------- A -------- Author 1 Author 2 -------- B -------- Author 3 Author 4 etc My thinking is to use nested ng-repeats to loop through the alphabet, getting an object with the authors for that specific letter with a second ng-repeat. Here's what I have so far: <div data-ng-repeat="letter in alphabet">