1
votes

For a site using knockout.js you could select an element in chrome with the picker (dev tools) and then write in the console ko.contextFor($0) is there an eqivalent in Aurelia that would let me see the binding context for an HTML element?

2

2 Answers

3
votes

There is a Chrome addon exactly for that (GitHub repo).

2
votes

Looking at the code from the chrome addon it seems that $0.au gives a decent amount of information.

To get the binding context you can find it with $0.au.show.scope.bindingContext