I have a template in which I want to generate some HTML only if the current item has some different fields from the previous item. How can I access the previous item in an
Why not using key from ng-repeat ? ($index seems tricky compared to key)
key
ng-repeat
$index
My previous item is {{ data[key-1] }}, my actual item is {{ item }}