Problem handling UserEventsService in AngularJS (loginError case)

the tutorial The Authenticated App With AngularJS + DreamFactory User Management Part Two
shows how to deal with a successful login using

$scope.$on(UserEventsService.login.loginSuccess, function (e, userDataObj) {
  $scope.$parent.currentUser = userDataObj;

but I didn’t find the right way to manage UserEventsService.login.loginError

Do you have a snippet regarding this case? Thanks.

Have you reviewed the readme from the user management module?

It covers the namespaced events including loginError: 'user:login:error' but I don’t see an example of handling it. Perhaps someone in the community can contribute that.

Hi Jeffrey, yes I looked at the user management module. I might try again… meanwhile, thanks.