I just came across a really curious issue while fiddling around.
I have created a logging function which appends the text to
document.body.innerHTML += text + '<br>';
Because you are setting the
innerHTML, you are effectively recreating the whole
document.body.innerHTML += is a bad idea in any scenario, but especially when using Angular.
If you need to do this, and cannot do it through standard Angular binding etc, a better option would be