dibari / angular-ellipsis

Angular directive to truncate multi-line text to visible height

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration of ng-bind with ng-repeat.

martingg88 opened this issue · comments

How to make the ng-bind to work with ng-repeat in order to include the truncate text in looping.

having issues with this as well. it will work if I call $scope.$apply() after the angular.forEach that I populate the list with, but since this is in a callback for $http, it complains that $digest is already happening.

ah but it worked when I stored the list in a temporary array and then assigned it to my ng-repeat driver after the forEach was done.

great. thanks...

@coobstar, you're right in that there is a conflict with $digest here. Can you paste in an example of the non-working code? I'd like to think we can simply modify the directive's priority, but things are generally never that simple.