Skip to content

Track by isn't working #21

@climboid

Description

@climboid

Specified track by $index on the slide directive but I still get the same error

<div class="flexslider homePageMainSlider">
  <flex-slider slide="s in topHomeCarousel track by $index" class="slides" direction-nav="false" animation="slide" control-nav="false">
  <li>
      <img ng-src="{{s}}">
  </li>
  </flex-slider>
</div>

What does work is if I use a property of the array of objects I'm looping through for instance

<div class="flexslider homePageMainSlider">
  <flex-slider slide="s in topHomeCarousel track by s.id" class="slides" direction-nav="false" animation="slide" control-nav="false">
  <li>
      <img ng-src="{{s}}">
  </li>
  </flex-slider>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions