Code cleanup part #1: move all the services and directive JS code in the app.js file into its own files
This commit is contained in:
parent
3cae6609a7
commit
9b87999c1c
97 changed files with 7076 additions and 6870 deletions
20
static/js/directives/ui/resource-view.js
Normal file
20
static/js/directives/ui/resource-view.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* 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;
|
||||
});
|
Reference in a new issue