angular/angular.js — pull request #2043 by benajnim (2013-02-20 23:23:45+00:00)
Title: feat(ngAttribute): add directive attribute parameter ngAttrWhen

Allows for an additional boolean expression when using ngSrc/ngHref
(ngAttribute) directives to control when to set the element attribute. If the
attributes are set before all elements are populated and valid, the browser
could trigger a request for invalid image resource. Previously, the entire
value was checked before setting the attribute and this accommodates
gluing together the value in the ngAttribute parameter and deferring when
it gets set.