Consider the following component tree structure in Angular2
A
B
D E
If D
emits an event via click to B
, angular2
will automatically start the change detection from root A
. Is there a way to console.log
that change detection out even if D
is not directly emitting event to A
?
For example in D
html
<div (click)="update($event)"></div>
component
@Output() myOutputName = new EventEmitter();
update(event) {
this.myOutputName.emit('some vlaue');
}
In B
(myOutputName)="update($event)"
But if B
doesn't further that event I have no way to tell if A
is running its change detection.
The motivation for this is to figure out which component has Change Detection
running for debugging purpose