debugCheckBindings function
Opt-in/out to more precise and exhaustive checking of AngularDart bindings.
The current (live) version of checkBinding
(in debug mode) accidentally
was implemented where it only checks primitive values (strings, numbers,
booleans, null) and not other types. While in practice most bindings
eventually propagate to strings, this makes errors much more difficult to
debug.
Context (expression and source location) is also reported when available.
Implementation
void debugCheckBindings([bool enabled = true]) {
_debugCheckAllExpressionsAndReportExpressionContext = enabled;
}