angular/angular.js — pull request #6414 by cexbrayat (2014-02-23 10:24:55+00:00)
Title: feat($parse): log rendering issues

Logs a warning in console when an angular expression contains an undefined key.
fixes #6204

This a naïve attempt to solve the problem in the related issue, but that's a first step to launch a discussion (if you have any interest in improving this).

I've added a simple `console.warn` (is it a good idea? what level should that be? should we have some kind of options to enable or disable it?) when an expression has an undefined object in its path. Unit tests are still green, but this log adds some noise (I don't know what would be the best way to avoid such noise in other tests).

Even with this raw first implementation, it's doing a fine job on my projects and it's helping to find typos in expressions or unwanted null objects.