$scope.showError = function(text, fadeOut) {
          $('#error-message').html(text);
          $('#error-message').show();
          if (fadeOut) {
            $('#error-message').delay(3000).fadeOut('slow')