2

I'm working on an angular (7.x) app running in dev mode.

Starting from browser (chrome in my case) devTools > Elements > Event listeners, is there a way to "easily" retrieve which angular component set the listener (inside template (click)=call() or using renderer.listen()) ?

enter image description here

We can see the handler is inside zone.js line 1551, function globalZoneAwareCallback but no trace about a component ref or name..

bertrandg
  • 3,147
  • 2
  • 27
  • 35
  • 2
    this is a great question, I will try to do some research to find out whether it is possible to extract the underlying information inside Chrome dev tool. – jiali passion Mar 20 '19 at 08:11
  • Nice, thank you. I've seen you are an 'angular collaborator' on twitter, felicitations! – bertrandg Mar 20 '19 at 13:35

1 Answers1

0

Do you tried with https://augury.rangle.io/ ? I found it very useful

Facundo Coto
  • 1
  • 1
  • 5
  • I've tried several times but not helpful for me (wrong `changeDetectionStrategy` displayed, missing `@Input`,..) and not working in application using wijmo lib.. – bertrandg Nov 29 '18 at 13:43