Q:

In AngularJS, how can I see errors from templates, such as calls to undefined methods?

If I have an AngularJS template that looks something like:
{{foo.someFunc()}}

And nothing is rendered, it is hard to tell what the problem was:

Was foo undefined?
Was foo.someFunc undefined?
Was the function defined, but returning an empty string?
Or was it perhaps encountering an error?

In the cases where there is an error (like foo or someFnc not being defined), no error is reported to me.
Is there a way to change that?

A:

AngularJS expressions are not evaluated with eval().
http://docs.angularjs.org/guide/expression
This is actually a huge advantage of Angular, as it leads to less buggy user experiences.

Forgiving: expression evaluation is forgiving to undefined and null, unlike in JavaScript, where trying to evaluate undefined properties can generate ReferenceError or TypeError.

As far as I know, there is no way to change this ^

