Add error-logging example for AngularJS.