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
  • 21,052
  • 22
  • 49
  • 55
SpaceBeers
  • 13,617
  • 6
  • 47
  • 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
  • 623,577
  • 216
  • 2,003
  • 1,567
2

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

Tomer Almog
  • 3,604
  • 3
  • 30
  • 36