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
like this.
function log(text)
{
document.body.innerHTML += text + '<br>';
}
If I now call this funciton from my controller scope it breaks AngularJS.
Could someone explain this behaviour?
Demo - click bar multiple times, they fire. click foo once, none of the click events work anymore