I receive data from my back end server structured like this:
{
name : \"Mc Feast\",
owner : \"Mc Donalds\"
},
{
name : \"Royale with cheese\",
owne
For what it's worth, to add one more example and solution, I had a simple filter like this:
.filter('paragraphs', function () {
return function (text) {
return text.split(/\n\n/g);
}
})
with:
{{ p }}
which caused the described infinite recursion in $digest. Was easily fixed with:
{{ p }}
This is also necessary since ngRepeat paradoxically doesn't like repeaters, i.e. "foo\n\nfoo" would cause an error because of two identical paragraphs. This solution may not be appropriate if the contents of the paragraphs are actually changing and it's important that they keep getting digested, but in my case this isn't an issue.