Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

[Carousel] wrong slide order with ng-repeat usage #2355

Closed
dearlordylord opened this issue Jun 18, 2014 · 3 comments
Closed

[Carousel] wrong slide order with ng-repeat usage #2355

dearlordylord opened this issue Jun 18, 2014 · 3 comments

Comments

@dearlordylord
Copy link

I have several slides in ng-repeat and also "first" slide and "last" slide that logically is not the same as ng-repeat data so I put it in their own tags. It looks like this:

<carousel>
    <slide>start</slide>
    <slide ng-repeat="item in items">
      {{item}}
    </slide>
    <slide>end</slide>
  </carousel>

but instead of start -> ... elements ... -> end
I have start -> end -> ...elements ...

Reproduced here http://plnkr.co/edit/7R1w6q9pCdSnSgQ09Wen?p=preview

Tried with last on the moment master branch also.

Thanks

@mattmcneeney
Copy link

Hi Firfi,

Did you ever manage to resolve this issue? I'm seeing the same problem unfortunately!

Thanks

@dearlordylord
Copy link
Author

Hi, unfortunately not. Current partial solution is including every information for rendering first and last pages inside ng-repeat along with another slides and then render it with ng-switch that apply different html

@chrisirhc
Copy link
Contributor

Closing as duplicate of #488.

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

No branches or pull requests

3 participants