<div id="{{tagid}}" ng-repeat="item in arrItem">
{{addCompileTag(item)}}
</div>
</code>
In addCompileTag(item)
function, I use id
of the div
tag is "tagid"
to $compile
HTML DOM inside the div tag, but continually mechanisms $watch
called to generate an error.
"Error: [
$rootScope:infdig
] 10$digest()
iterations reached. Aborting! Watchers fired in the last 5 iterations"
Help me!
ng-repeat
means you will have several of these divs so you need to give them all their own id (or use a directive to compile the DOM and you won't need an id at all).