6

So for my sins I'm on an Angular 2 project. I use angular.element($0).scope() all the time on my old Angular 1 work to inspect an element and see what's on the scope at that point in the dev tools. This is super useful, is there something similar in Angular 2?

BDL
  • 19,702
  • 16
  • 49
  • 50
SpaceBeers
  • 13,129
  • 6
  • 45
  • 61

2 Answers2

12

Augury is a great suggestion. If you want direct access use

ng.probe($0)

See also

Community
  • 1
  • 1
Günter Zöchbauer
  • 558,509
  • 191
  • 1,911
  • 1,506
2

Have you tried using Augury? Link: https://github.com/rangle/augury

Tomer Almog
  • 3,120
  • 2
  • 28
  • 32