angular-bind-html-compile icon indicating copy to clipboard operation
angular-bind-html-compile copied to clipboard

Does not work with ngRepeat

Open crazyjat opened this issue 7 years ago • 3 comments

When using on or inside an element with ngRepeat, this can trigger the following error: Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!

crazyjat avatar Nov 22 '17 06:11 crazyjat

+1, ngRepeat causes infdig error

Havock94 avatar Feb 28 '18 13:02 Havock94

+1, same issue here

rossjrw avatar Oct 17 '18 19:10 rossjrw

Change $watch method to $watchCollection and watch expression return scope.$eval(attrs.bindHtmlCompile); to return $parse(element.attr('bind-html-compile'))(scope);

Worked for me

mantasdev avatar Apr 12 '19 06:04 mantasdev