lorenzofox3 / lrInfiniteScroll

directive to register handler when an element is scrolled down near its end http://lorenzofox3.github.io/lrInfiniteScroll/index.html
217 stars 46 forks source link

Repeating Directive not rendering new template #13

Closed coeus01 closed 8 years ago

coeus01 commented 8 years ago

I have an issue with this setup:

<div lr-infinite-scroll="loadMore">
    <my-component type='item.type' ng-repeat='item in items'></my-component>
</div>

I have a directive inside with different html template for each item type. The infinite scrolling works perfectly but when I change the item array with items with different type the template remains the same.

lorenzofox3 commented 8 years ago

I don't think that is related to lr-infinite-scroll but rather to the my-component one, have you tried without using lr-infinite-scroll ? do you experiment any issue ?

coeus01 commented 8 years ago

Hello @lorenzofox3 after all it was my fault, I had the track by $index option on