ngAfterViewinit(){
var f=function(){
this.a="changing val"
}
document.getElementById('d').addEventListener('click',f.bind(this));
}
How is angular running change detection and updating view on this click event? As much as I know, change detection works in angular context, zone encapsulate events and run change.
In this I am using native dom event; if we were using angularjs, we had to run digest cycle manually, but here how does angular know even if click event is outside context?