/** * An element which displays either a resource (if present) or an error message if the resource * failed to load. */ angular.module('quay').directive('resourceView', function () { var directiveDefinitionObject = { priority: 0, templateUrl: '/static/directives/resource-view.html', replace: false, transclude: true, restrict: 'C', scope: { 'resource': '=resource', 'errorMessage': '=errorMessage' }, controller: function($scope, $element) { } }; return directiveDefinitionObject; });