I have this scope function
$scope.foo = function() { console.log('foo') } What is the shortest way of calling it in a DOM event handler?
<img src='foo.jpg' onError="???"> Please note that the code is a sample. I don't need to know how to handle failing images.