Skip to content

Instantly share code, notes, and snippets.

@ansmith
Created February 12, 2014 17:08
Show Gist options
  • Save ansmith/8959912 to your computer and use it in GitHub Desktop.
Save ansmith/8959912 to your computer and use it in GitHub Desktop.
myApp.controller('AbstractWidgetControl', function($scope) {
$scope.errorMaskVisible = false;
$scope.errorMessage = '';
$scope.showErrorMask = function(message) {
$scope.errorMessage = message || 'Unknown error occurred';
$scope.errorMaskVisible = true;
};
$scope.hideErrorMask = function() {
$scope.errorMaskVisible = false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment