dibari / angular-ellipsis

Angular directive to truncate multi-line text to visible height

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng-repeat with 300+ items?

tonejac opened this issue · 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.

Performance can be an issue. #14 looks promising, but needs some work to get it integrated.

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?

#42 should have fixed this issue.

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