I have to track down a bug related to work of ng-class (sometimes it adds new value without removing old). So I need a quick reference to see it's current value. Is there any short (or not) way to bind that to the content? I mean something like this:
<div ng-class="something">
{{ngClassValueDisplayedHere}}
</div>
ng-class
can bind to many different things. From the documentation:So in your example, just display whatever your
something
is. It's supposed to be an angular expression, which can be evaluated like any other with double-curlies. This will help you debug yourng-class
Demo