angular-ellipsis icon indicating copy to clipboard operation
angular-ellipsis copied to clipboard

ng-repeat with 300+ items?

Open tonejac opened this issue 10 years ago • 4 comments

Is there an upper limit to the amount of truncations this directive can perform? I have 300+ right now and it is taking a few seconds.

Please advise.

tonejac avatar Jul 24 '15 05:07 tonejac

Performance can be an issue. https://github.com/dibari/angular-ellipsis/pull/14 looks promising, but needs some work to get it integrated.

MauMaGau avatar Jul 24 '15 11:07 MauMaGau

Ahhh... it is mostly from the fact that data-bind is being used. Is there a way to use angular-ellipsis without data-binding?

<p data-ng-bind="slide.comment" data-ellipsis data-ellipsis-symbol="..."></p> // THIS WORKS BUT IS SLOW WITH A LARGE NG-REPEAT

VS.

<p data-ellipsis data-ellipsis-symbol="...">{{ slide.comment }}</p> // THIS DOES NOT WORK. IS THERE A WAY TO MAKE IT WORK?

tonejac avatar Jul 24 '15 20:07 tonejac

https://github.com/dibari/angular-ellipsis/pull/42 should have fixed this issue.

sod avatar Mar 07 '16 14:03 sod

The issue is still relevant, unfortunately :( It takes a couple of seconds to work with 90 items.

Maximaximum avatar Sep 30 '16 14:09 Maximaximum