Are there any ways to keep items in ng-repeat based tree in sequential number order if Item has child Items collapsed/expanded or not?
I'm meaning something like this: Expanded state Parent1 (index value should be 0) ----- Child 1 (index value should be 1) ----- Child 2 (index value should be 2) Parent 2 (index value should be 3) Parent 3 (index value should be 4) ---- Child 1 (index value should be 5) Parent 4 (index value should be 6) ----- Child 1 (index value should be 7) ----- Child 2 (index value should be 8) ----- Child 3 (index value should be 9) ----- Child 4 (index value should be 10) same data when collapsed Parent1 (index value should be 0) Parent 2 (index value should be 3) Parent 3 (index value should be 4) Parent 4 (index value should be 6) ----- Child 1 (index value should be 7) ----- Child 2 (index value should be 8) ----- Child 3 (index value should be 9) ----- Child 4 (index value should be 10) Best Regards, -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
