Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ng-class-odd(even) breaks #1519

Closed
CalmNad opened this issue Nov 2, 2012 · 1 comment
Closed

ng-class-odd(even) breaks #1519

CalmNad opened this issue Nov 2, 2012 · 1 comment

Comments

@CalmNad
Copy link

CalmNad commented Nov 2, 2012

http://jsfiddle.net/CalmNad/M75sc/4/

data: [{'name':'eee', 'id':7}, {'name':'aaa', 'id':9}, {'name':'ccc', 'id':8}, {'name':'bbb', 'id':2}, {'name':'ddd', 'id':3}]
ng-repeat="line in lines | orderBy:predicate:reverse"

  1. run
  2. default predicate='name'; dynamically change reverse; - ng-class-odd(even) working properly.
  3. dynamically change predicate='id'; dynamically change reverse; - zebra dies (ng-class-odd(even) breaks).
@pkozlowski-opensource
Copy link
Member

Closing as duplicate of #1563

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants